diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 17:58:46 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 17:58:46 +0300 |
| commit | b8566b704e0804239bcb58dfb90b32e5334ce446 (patch) | |
| tree | be58a5f0c37690b07a48db45e9b0fc498c680b58 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs | |
| parent | b90acacb7dbef7d088d57a200cc4d71148bffd1e (diff) | |
| download | Tango-b8566b704e0804239bcb58dfb90b32e5334ce446.tar.gz Tango-b8566b704e0804239bcb58dfb90b32e5334ce446.zip | |
Implemented JobRunner on Tech Board !.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/ProcessParametersItem.cs | 25 |
1 files changed, 14 insertions, 11 deletions
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<ProcessParametersTable> ProcessParametersTables { get; set; } + + static ProcessParametersItem() + { + ProcessParametersTables = new ObservableCollection<ProcessParametersTable>(); + } + public class ParameterIndex { public String Name { get; set; } @@ -28,16 +36,6 @@ namespace Tango.MachineStudio.Technician.TechItems public event EventHandler<ProcessParametersTable> PushParametersPressed; - private String _displayName; - /// <summary> - /// Gets or sets the display name. - /// </summary> - public String DisplayName - { - get { return _displayName; } - set { _displayName = value; RaisePropertyChangedAuto(); } - } - private ProcessParametersTable _processParameters; /// <summary> /// Gets or sets the process parameters. @@ -83,15 +81,20 @@ namespace Tango.MachineStudio.Technician.TechItems public ProcessParametersItem() : base() { ParametersIndices = new List<ParameterIndex>(); - 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() |
