diff options
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 | 43 |
1 files changed, 42 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 a0d6e2955..594f418a7 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs @@ -12,6 +12,8 @@ namespace Tango.PPC.UI.ViewModels { public class MachineStatusViewVM : PPCViewModel { + #region Properties + private JobHandler _handler; private Job _job; @@ -34,11 +36,39 @@ namespace Tango.PPC.UI.ViewModels set { _runningJobStatus = value; RaisePropertyChangedAuto(); } } + private bool _isJobStatusViewEnable; + + public bool IsJobStatusViewEnable + { + get { return _isJobStatusViewEnable; } + set { _isJobStatusViewEnable = value; RaisePropertyChangedAuto(); } + } + + #endregion + + #region Commands + public RelayCommand StopCommand { get; set; } + /// <summary> + /// Gets or sets the job status view command. + /// </summary> + public RelayCommand JobStatusViewCommand { get; set; } + + /// <summary> + /// Gets or sets the overview view command. + /// </summary> + public RelayCommand OverviewViewCommand { get; set; } + + #endregion + public MachineStatusViewVM() { StopCommand = new RelayCommand(StopJob); + JobStatusViewCommand = new RelayCommand(JobStatusView); + OverviewViewCommand = new RelayCommand(OverviewView); + + IsJobStatusViewEnable = true; } public override void OnApplicationStarted() @@ -73,7 +103,7 @@ namespace Tango.PPC.UI.ViewModels RunningJobStatus = e; }); } - + #region Public Methods /// <summary> @@ -96,6 +126,17 @@ namespace Tango.PPC.UI.ViewModels _handler?.Cancel(); } + protected void JobStatusView() + { + IsJobStatusViewEnable = true; + } + + protected void OverviewView() + { + IsJobStatusViewEnable = false; + } + + #endregion } } |
