diff --git a/src/client/spark/AW2/ViewModel/VolSurfaceMacroActionsVM.cs b/src/client/spark/AW2/ViewModel/VolSurfaceMacroActionsVM.cs index f37eb80c7..7a31bcba5 100644 --- a/src/client/spark/AW2/ViewModel/VolSurfaceMacroActionsVM.cs +++ b/src/client/spark/AW2/ViewModel/VolSurfaceMacroActionsVM.cs @@ -5,6 +5,7 @@ using mbts.ui.shell; using Spark.Core.Reflection; + using Spark.ViewModel.Commands; using System; using System.Collections.Generic; diff --git a/src/client/spark/AW2/ViewModel/VolSurfaceTimeDecayEditorVM.cs b/src/client/spark/AW2/ViewModel/VolSurfaceTimeDecayEditorVM.cs index 3efd434f9..cadab74f0 100644 --- a/src/client/spark/AW2/ViewModel/VolSurfaceTimeDecayEditorVM.cs +++ b/src/client/spark/AW2/ViewModel/VolSurfaceTimeDecayEditorVM.cs @@ -7,6 +7,8 @@ using mbts.ui.shell; using mbts.ui.utility; + using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/client/spark/AW2/ViewModel/VolSurfaceVM.cs b/src/client/spark/AW2/ViewModel/VolSurfaceVM.cs index 882306b62..2b2435248 100644 --- a/src/client/spark/AW2/ViewModel/VolSurfaceVM.cs +++ b/src/client/spark/AW2/ViewModel/VolSurfaceVM.cs @@ -11,6 +11,8 @@ namespace mbts.spark { using mbts.ui.settings; using mbts.ui.shell; + using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs b/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs index bca43f3d9..783453cb0 100644 --- a/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs +++ b/src/client/spark/Modules/Spreader/VM/SyntheticEditorVM.cs @@ -10,6 +10,8 @@ using mbts.ui.utility; using mbts.user.settings; using mbts.utils; +using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs index 92fb182cd..febbeb31b 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookRowVM.cs @@ -8,6 +8,8 @@ using bts.utils; using mbts.ui; using mbts.ui.controls; +using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs b/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs index 55d47fab1..081cfa1c2 100644 --- a/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs +++ b/src/client/spark/Modules/Trading/OrderBook/OrderBookVM.cs @@ -19,6 +19,8 @@ using mbts.ui.spark; using mbts.ui.utility; using mbts.utils; +using Spark.ViewModel.Commands; + using System; using System.Collections; using System.Collections.Generic; diff --git a/src/client/spark/ViewModel/Commands/AsyncCommand.cs b/src/client/spark/ViewModel/Commands/AsyncCommand.cs index 8f81d1440..27830f8a3 100644 --- a/src/client/spark/ViewModel/Commands/AsyncCommand.cs +++ b/src/client/spark/ViewModel/Commands/AsyncCommand.cs @@ -1,4 +1,6 @@ -using System; +using Spark.ViewModel.Commands; + +using System; using System.ComponentModel; using System.Threading.Tasks; using System.Windows.Input; diff --git a/src/client/spark/ViewModel/Commands/Command.cs b/src/client/spark/ViewModel/Commands/Command.cs index 08e98e2d2..d8fed1c5d 100644 --- a/src/client/spark/ViewModel/Commands/Command.cs +++ b/src/client/spark/ViewModel/Commands/Command.cs @@ -1,4 +1,6 @@ namespace mbts.ui { + using Spark.ViewModel.Commands; + using System; using System.Windows.Input; diff --git a/src/client/spark/ViewModel/Commands/CompositeEventCommand.cs b/src/client/spark/ViewModel/Commands/CompositeEventCommand.cs index 271ef73dc..23ba38734 100644 --- a/src/client/spark/ViewModel/Commands/CompositeEventCommand.cs +++ b/src/client/spark/ViewModel/Commands/CompositeEventCommand.cs @@ -1,5 +1,7 @@ #nullable enable namespace mbts.ui { + using Spark.ViewModel.Commands; + using System; class CompositeEventCommand : IEventCommand<(T1, T2)>, IRaiseCanExecuteChangedCommand, IDisposable { diff --git a/src/client/spark/ViewModel/Commands/DelegateCommand.cs b/src/client/spark/ViewModel/Commands/DelegateCommand.cs index 91fe5bb4d..71e03811e 100644 --- a/src/client/spark/ViewModel/Commands/DelegateCommand.cs +++ b/src/client/spark/ViewModel/Commands/DelegateCommand.cs @@ -1,11 +1,9 @@ -using System; +using Spark.ViewModel.Commands; + +using System; using System.Windows.Input; namespace mbts.ui { - public interface IRaiseCanExecuteChangedCommand : ICommand { - void RaiseCanExecuteChanged(); - } - public class DelegateCommand : ICommand, IRaiseCanExecuteChangedCommand { protected Func _can_execute; protected Action _execute; diff --git a/src/client/spark/ViewModel/Commands/IEventCommand.cs b/src/client/spark/ViewModel/Commands/IEventCommand.cs index 24b857b51..39c957698 100644 --- a/src/client/spark/ViewModel/Commands/IEventCommand.cs +++ b/src/client/spark/ViewModel/Commands/IEventCommand.cs @@ -1,5 +1,7 @@ #nullable enable namespace mbts.ui { + using Spark.ViewModel.Commands; + using System; interface IEventCommand : IRaiseCanExecuteChangedCommand { diff --git a/src/client/spark/ViewModel/Commands/IRaiseCanExecuteChangedCommand.cs b/src/client/spark/ViewModel/Commands/IRaiseCanExecuteChangedCommand.cs new file mode 100644 index 000000000..845e9bdb8 --- /dev/null +++ b/src/client/spark/ViewModel/Commands/IRaiseCanExecuteChangedCommand.cs @@ -0,0 +1,8 @@ +#nullable enable +namespace Spark.ViewModel.Commands { + using System.Windows.Input; + + public interface IRaiseCanExecuteChangedCommand : ICommand { + void RaiseCanExecuteChanged(); + } +} diff --git a/src/client/spark/ViewModel/Commands/ObservantAsyncCommand.cs b/src/client/spark/ViewModel/Commands/ObservantAsyncCommand.cs index bb4594169..595b1d084 100644 --- a/src/client/spark/ViewModel/Commands/ObservantAsyncCommand.cs +++ b/src/client/spark/ViewModel/Commands/ObservantAsyncCommand.cs @@ -1,4 +1,6 @@ -using System; +using Spark.ViewModel.Commands; + +using System; using System.ComponentModel; using System.Reactive; using System.Threading.Tasks; diff --git a/src/client/spark/ViewModel/Commands/ObservantCommand.cs b/src/client/spark/ViewModel/Commands/ObservantCommand.cs index 90080a8c9..2ef5d8b07 100644 --- a/src/client/spark/ViewModel/Commands/ObservantCommand.cs +++ b/src/client/spark/ViewModel/Commands/ObservantCommand.cs @@ -1,3 +1,5 @@ +using Spark.ViewModel.Commands; + using System; using System.Reactive; using System.Windows.Input; diff --git a/src/client/spark/ViewModel/Commands/TupleCommand.cs b/src/client/spark/ViewModel/Commands/TupleCommand.cs index 068d016a8..7557c28ed 100644 --- a/src/client/spark/ViewModel/Commands/TupleCommand.cs +++ b/src/client/spark/ViewModel/Commands/TupleCommand.cs @@ -1,4 +1,6 @@ -using System; +using Spark.ViewModel.Commands; + +using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; diff --git a/src/client/spark/view/Extensions/Command/AsyncDialogCommand.cs b/src/client/spark/view/Extensions/Command/AsyncDialogCommand.cs index 903c4e535..4a2f25a58 100644 --- a/src/client/spark/view/Extensions/Command/AsyncDialogCommand.cs +++ b/src/client/spark/view/Extensions/Command/AsyncDialogCommand.cs @@ -2,6 +2,8 @@ using mbts.ui.utility; +using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.Linq; diff --git a/src/client/spark/view/Extensions/Command/DialogCommand.cs b/src/client/spark/view/Extensions/Command/DialogCommand.cs index 616592798..877158b09 100644 --- a/src/client/spark/view/Extensions/Command/DialogCommand.cs +++ b/src/client/spark/view/Extensions/Command/DialogCommand.cs @@ -1,4 +1,6 @@ -using System; +using Spark.ViewModel.Commands; + +using System; using System.Windows; using System.Windows.Input; diff --git a/src/client/spark/view/Extensions/WPFAttachedBehavior.cs b/src/client/spark/view/Extensions/WPFAttachedBehavior.cs index ee40954b1..f349f1ec0 100644 --- a/src/client/spark/view/Extensions/WPFAttachedBehavior.cs +++ b/src/client/spark/view/Extensions/WPFAttachedBehavior.cs @@ -2,6 +2,8 @@ using mbts.utils; +using Spark.ViewModel.Commands; + using System; using System.Windows; using System.Windows.Controls; diff --git a/src/client/spark/view/Extensions/WPFExtensions.cs b/src/client/spark/view/Extensions/WPFExtensions.cs index 9d20676e4..2d9d01b85 100644 --- a/src/client/spark/view/Extensions/WPFExtensions.cs +++ b/src/client/spark/view/Extensions/WPFExtensions.cs @@ -4,6 +4,8 @@ using bts.utils; using mbts.utils; +using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/client/spark/view/Shell/Workspaces/WorkspacesDialogViewModel.cs b/src/client/spark/view/Shell/Workspaces/WorkspacesDialogViewModel.cs index 8ab1a5a43..cfd8c4f4b 100644 --- a/src/client/spark/view/Shell/Workspaces/WorkspacesDialogViewModel.cs +++ b/src/client/spark/view/Shell/Workspaces/WorkspacesDialogViewModel.cs @@ -4,6 +4,8 @@ using mbts; using mbts.ui; using mbts.ui.shell; +using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/client/spark/view/Spark/ContractPicker/ContractPickerVM.cs b/src/client/spark/view/Spark/ContractPicker/ContractPickerVM.cs index a94d97c81..9abda9b2e 100644 --- a/src/client/spark/view/Spark/ContractPicker/ContractPickerVM.cs +++ b/src/client/spark/view/Spark/ContractPicker/ContractPickerVM.cs @@ -6,6 +6,8 @@ using mbts.ui; using mbts.ui.shell; using mbts.ui.utility; +using Spark.ViewModel.Commands; + using System; using System.Collections.Generic; using System.Collections.Immutable;