exposing a new begin_attach_command for easy databinding
This commit is contained in:
1 parent
a869598d5e
commit
63ef6b6457
1 file changed
+3
@@ -79,6 +79,7 @@ namespace mbts.spark {
|
||||
var send_attached_orders_async_cmd = new AsyncCommand(send_attached_orders_async, () => _selected_params_mon.all_active);
|
||||
send_attached_orders_cmd = send_attached_orders_async_cmd;
|
||||
cancel_attach_orders_cmd = new DelegateCommand(() => is_attaching_algos = false);
|
||||
begin_attach_command = new DelegateCommand(() => begin_attach_algos(), () => selected_rows.Count > 0);
|
||||
toggle_algo_editor_is_visible_cmd = new DelegateCommand(() => algo_editor_is_visible = !algo_editor_is_visible);
|
||||
toggle_fills_slave_grid_is_visible_cmd = new DelegateCommand(() => fills_slave_grid_is_visible = !fills_slave_grid_is_visible);
|
||||
grid_settings_manager = _create_grid_settings_manager(owner_title, bus, notification_service, model, rows, core_columns);
|
||||
@@ -223,6 +224,7 @@ namespace mbts.spark {
|
||||
public ICommand modify_selected_algos_command { get; }
|
||||
public ICommand send_attached_orders_cmd { get; }
|
||||
public ICommand cancel_attach_orders_cmd { get; }
|
||||
public ICommand begin_attach_command { get; }
|
||||
public ICommand toggle_algo_editor_is_visible_cmd { get; }
|
||||
public ICommand toggle_fills_slave_grid_is_visible_cmd { get; }
|
||||
public bool algo_editor_is_visible {
|
||||
@@ -257,6 +259,7 @@ namespace mbts.spark {
|
||||
}
|
||||
}
|
||||
RowSelectionHelper.apply_changes(selected_rows, e);
|
||||
begin_attach_command.TryRaiseCanExecuteChanged();
|
||||
selected_order_changed?.Invoke(current_order);
|
||||
} catch(Exception ex) {
|
||||
// [John]I observed a strange null-reference exception in this callback when the launcher was shutting down (see https://bluetradesys.atlassian.net/browse/SPARK-2089)
|
||||
|
||||
Reference in new issue
Block a user