diff options
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs index be77ee217..6b97bae31 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs @@ -146,6 +146,8 @@ namespace Tango.MachineEM.UI.ViewModels public RelayCommand PerformDataStoreTestCommand { get; set; } + public RelayCommand RequestWasteReplaceCommand { get; set; } + #endregion #region Constructors @@ -179,6 +181,7 @@ namespace Tango.MachineEM.UI.ViewModels StartThreadLoadingCommand = new RelayCommand(StartThreadLoading, (x) => Emulator.IsStarted && !_isThreadLoading); FinalizeThreadLoadingCommand = new RelayCommand(FinalizeThreadLoading, (x) => Emulator.IsStarted && _isThreadLoading); AbortJobCommand = new RelayCommand(() => Emulator?.AbortJob(), (x) => Emulator.IsStarted); + RequestWasteReplaceCommand = new RelayCommand(RequestWasteReplace, (x) => Emulator.IsStarted); Ports = new List<string>() { @@ -411,6 +414,11 @@ namespace Tango.MachineEM.UI.ViewModels } } + private void RequestWasteReplace() + { + Emulator.RequestWasteEmptying(); + } + #endregion } } |
