diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-05-12 16:10:34 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-05-12 16:10:34 +0300 |
| commit | b8358b92b56ef5c17636aec6a0cf48186528ea23 (patch) | |
| tree | 53c053519cac73dcd0bdef94d10259dd1c0826e2 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems | |
| parent | 5c1649221047dd4fe3d8de124f21a878a3e4b555 (diff) | |
| download | Tango-b8358b92b56ef5c17636aec6a0cf48186528ea23.tar.gz Tango-b8358b92b56ef5c17636aec6a0cf48186528ea23.zip | |
MS tech board custom name.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItem.cs | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItem.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItem.cs index f59107ca2..95b36eb70 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItem.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItem.cs @@ -104,6 +104,16 @@ namespace Tango.MachineStudio.Technician.TechItems set { _name = value; RaisePropertyChanged(nameof(Name)); } } + private String _customName; + /// <summary> + /// Gets or sets the name of the custom. + /// </summary> + public String CustomName + { + get { return _customName; } + set { _customName = value; RaisePropertyChangedAuto(); RaisePropertyChanged(nameof(TechNameFinal)); } + } + private double _left; /// <summary> /// Item Left. @@ -154,7 +164,7 @@ namespace Tango.MachineStudio.Technician.TechItems set { _angle = value; RaisePropertyChanged(nameof(Angle)); } } - + private String _techName; /// <summary> /// Gets or sets the tech item name. @@ -163,7 +173,24 @@ namespace Tango.MachineStudio.Technician.TechItems public String TechName { get { return _techName; } - set { _techName = value; RaisePropertyChangedAuto(); } + set { _techName = value; RaisePropertyChangedAuto(); RaisePropertyChanged(nameof(TechNameFinal)); } + } + + private String _techNameFinal; + public String TechNameFinal + { + get + { + if (CustomName.IsNotNullOrEmpty()) + { + return CustomName; + } + else + { + return _techName; + } + } + set { _techNameFinal = value; } } /// <summary> |
