From b92a2bd63cf2b832a0870deae740aa559cb685b3 Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Thu, 27 Jul 2023 16:14:22 +0300 Subject: Preparation to add resume to Machine Status view --- .../Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs | 35 +- .../PPC/Tango.PPC.UI/Views/MachineStatusView.xaml | 512 +++++++++++---------- 2 files changed, 312 insertions(+), 235 deletions(-) (limited to 'Software/Visual_Studio') 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; } /// @@ -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; } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml index 5f5612fb6..686638870 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/MachineStatusView.xaml @@ -352,6 +352,32 @@ + + + + + + + @@ -456,269 +482,287 @@ - - - - - - + + + + + + + - - - - - - Thread Type - + + + + + Thread Type + + - - - - - Job Length (m) - - - - - + + + + Job Length (m) + + + + + + - - - - - Job Weight (g) - - - - - + + + + Job Weight (g) + + + + + + - - - - - Copies - - - - - + + + + Copies + + + + + + - - - - - Spools - + + + + Spools + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + Completed / + Length + Weight + + - + + + + + + + + + + + + + + + + + + + + + - - - - - Completed / - Length - Weight + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + Getting Ready... + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + Time Left + + + + + + - - - - Getting Ready... - - - - + + + + + + + - - - Time Left - + + + - - - - - - + - - - - - - - - - - - + + - - - + + + + + + + -- cgit v1.3.1