aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
diff options
context:
space:
mode:
authorVictoria Plitt <Victoria.Plitt@twine-s.com>2023-03-16 18:17:48 +0200
committerVictoria Plitt <Victoria.Plitt@twine-s.com>2023-03-16 18:17:48 +0200
commit3283eca8d5cb327779d53b6e1744e3440098bb35 (patch)
tree7999c277135507ec39f604ee39cab9d9104d477a /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
parentbf40501d42c26b3e4357800f57d4c19c09ae3788 (diff)
downloadTango-3283eca8d5cb327779d53b6e1744e3440098bb35.tar.gz
Tango-3283eca8d5cb327779d53b6e1744e3440098bb35.zip
Eurika UI. Changes in Job details according to figma. Created Job Status page - only GUI.
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.cs43
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
}
}