From b8566b704e0804239bcb58dfb90b32e5334ce446 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 15 Jul 2018 17:58:46 +0300 Subject: Implemented JobRunner on Tech Board !. --- .../TechItems/ProcessParametersItem.cs | 25 ++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs index a6d3ae8f0..79aea7a0c 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -18,6 +19,13 @@ namespace Tango.MachineStudio.Technician.TechItems [TechItem(20)] public class ProcessParametersItem : TechItem { + public static ObservableCollection ProcessParametersTables { get; set; } + + static ProcessParametersItem() + { + ProcessParametersTables = new ObservableCollection(); + } + public class ParameterIndex { public String Name { get; set; } @@ -28,16 +36,6 @@ namespace Tango.MachineStudio.Technician.TechItems public event EventHandler PushParametersPressed; - private String _displayName; - /// - /// Gets or sets the display name. - /// - public String DisplayName - { - get { return _displayName; } - set { _displayName = value; RaisePropertyChangedAuto(); } - } - private ProcessParametersTable _processParameters; /// /// Gets or sets the process parameters. @@ -83,15 +81,20 @@ namespace Tango.MachineStudio.Technician.TechItems public ProcessParametersItem() : base() { ParametersIndices = new List(); - DisplayName = "Process parameters " + _counter++; Name = "Process Parameters"; Description = "Process parameters table"; Image = ResourceHelper.GetImageFromResources("Images/process-params.png"); ProcessParameters = new ProcessParametersTable(); + ProcessParameters.Name = "Process parameters " + _counter++; Color = Colors.DodgerBlue; PushParametersCommand = new RelayCommand(() => PushParametersPressed?.Invoke(this, ProcessParameters)); ResetToRMLCommand = new RelayCommand(ResetToRml, () => SelectedResetRML != null); + + if (_counter > 1) + { + ProcessParametersTables.Add(ProcessParameters); + } } private void ResetToRml() -- cgit v1.3.1