diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-07-27 16:14:22 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-07-27 16:14:22 +0300 |
| commit | b92a2bd63cf2b832a0870deae740aa559cb685b3 (patch) | |
| tree | 8c3c4e1f32b0ebab5a35bf7563c3d76c13895c44 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs | |
| parent | 3038323fb9bb7f37bf0cb35f3b7e08adae075b99 (diff) | |
| download | Tango-b92a2bd63cf2b832a0870deae740aa559cb685b3.tar.gz Tango-b92a2bd63cf2b832a0870deae740aa559cb685b3.zip | |
Preparation to add resume to Machine Status view
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs index 653c2368f..684b9bd8c 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs @@ -316,6 +316,12 @@ namespace Tango.PPC.UI.ViewModels public RelayCommand AbortCommand { get; set; } + public RelayCommand ResumeCommand { get; set; } + public RelayCommand CaancelJobCommand{ get; set; } + public RelayCommand RestartJobCommand { get; set; } + public RelayCommand ClearJobCommand { get; set; } + + public RelayCommand GoToJobCommand { get; set; } /// <summary> @@ -342,7 +348,14 @@ namespace Tango.PPC.UI.ViewModels StopCommand = new RelayCommand(StopJob, () => CanStopped()); AbortCommand = new RelayCommand(AbortJob, () => CanStopped()); - GoToJobCommand = new RelayCommand(GoToJob, () => IsEnableGoToJob()); + + ResumeCommand = new RelayCommand(ResumeJob, () => CanStopped()); + CaancelJobCommand = new RelayCommand(CaancelJob, () => CanStopped()); + RestartJobCommand = new RelayCommand(RestartJob, () => CanStopped()); + ClearJobCommand = new RelayCommand(ClearJob, () => CanStopped()); + + + GoToJobCommand = new RelayCommand(GoToJob, () => IsEnableGoToJob()); JobStatusViewCommand = new RelayCommand(JobStatusView); OverviewViewCommand = new RelayCommand(OverviewView); ClearAllNotificationsCommand = new RelayCommand(ClearAllNotifications); @@ -663,6 +676,26 @@ namespace Tango.PPC.UI.ViewModels private void AbortJob() { _handler?.Cancel(); + //Job = null; + } + + private void ResumeJob() + { + + } + + private void CaancelJob() + { + Job = null; + } + + private void RestartJob() + { + + } + + private void ClearJob() + { Job = null; } |
