diff --git a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml index 3d271d54e..ad1b5a8bc 100644 --- a/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml +++ b/src/client/spark/Modules/Spreader/ExecutionStrategyEditor.xaml @@ -350,7 +350,15 @@ + > + + + + + + + + /// The view model designed to serve as the DataContext for the SyntheticEditorView /// - partial class SyntheticEditorVM : ViewModelBaseWithValidation, IRequestViewClose, IDisposable { + partial class SyntheticEditorVM : ViewModelBaseWithValidation, IRequestViewClose, IRequestBindingSourceUpdate, IDisposable { readonly ObservableCollection _available_tick_factors = new ObservableCollection(TickUtils.all_present_ticks()); readonly QuantityModel _quantity_model; readonly PriceMultiplierModel _price_mult_model; @@ -73,6 +73,7 @@ namespace mbts.spark { }; remove_leg = new DelegateCommand(s => leg_tuples.removeFirst(l => l.leg.Security.Id == s.Id)); commit = new DelegateCommand(async () => { + RequestUpdate?.Invoke(); bool valid = true; if (string.IsNullOrWhiteSpace(name)) { flash_error_msg("Please enter a name", SparkUtils.UI.MessageFlashDuration, nameof(name)).ignore(); @@ -189,6 +190,7 @@ namespace mbts.spark { } public event EventHandler RequestClose; + public event Action RequestUpdate; public string title { get; } public ImageSource icon { get; }