diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 15:10:08 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-15 15:10:08 +0300 |
| commit | b90acacb7dbef7d088d57a200cc4d71148bffd1e (patch) | |
| tree | ca3ae211da23ac1352d1aaa4d43b7947eddee916 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems | |
| parent | de5700549a5fe01862f71d452f2abe4a74996605 (diff) | |
| download | Tango-b90acacb7dbef7d088d57a200cc4d71148bffd1e.tar.gz Tango-b90acacb7dbef7d088d57a200cc4d71148bffd1e.zip | |
Implemented custom min max on single and multiple graphs on tech board.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems')
2 files changed, 62 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/MultiGraphItem.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/MultiGraphItem.cs index bd165623a..029580a10 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/MultiGraphItem.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/MultiGraphItem.cs @@ -51,11 +51,42 @@ namespace Tango.MachineStudio.Technician.TechItems [XmlIgnore] public MultiGraphElementEditor Editor { get; set; } + private double _min; + /// <summary> + /// Gets or sets the minimum graph value. + /// </summary> + public double Min + { + get { return _min; } + set { _min = value; RaisePropertyChangedAuto(); } + } + + private double _max; + /// <summary> + /// Gets or sets the maximum graph value. + /// </summary> + public double Max + { + get { return _max; } + set { _max = value; RaisePropertyChangedAuto(); } + } + + private bool _useMinMax; + /// <summary> + /// Gets or sets a value indicating whether [use minimum maximum]. + /// </summary> + public bool UseMinMax + { + get { return _useMinMax; } + set { _useMinMax = value; RaisePropertyChangedAuto(); } + } + /// <summary> /// Initializes a new instance of the <see cref="MultiGraphItem"/> class. /// </summary> public MultiGraphItem() : base() { + Max = 100; Name = "Multi Channel Graph"; Description = "Multi channel real-time graph"; Image = ResourceHelper.GetImageFromResources("Images/multi-graph.png"); diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/SingleGraphItem.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/SingleGraphItem.cs index 19cbab426..148368881 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/SingleGraphItem.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/SingleGraphItem.cs @@ -51,11 +51,42 @@ namespace Tango.MachineStudio.Technician.TechItems [XmlIgnore] public SingleGraphElementEditor Editor { get; set; } + private double _min; + /// <summary> + /// Gets or sets the minimum graph value. + /// </summary> + public double Min + { + get { return _min; } + set { _min = value; RaisePropertyChangedAuto(); } + } + + private double _max; + /// <summary> + /// Gets or sets the maximum graph value. + /// </summary> + public double Max + { + get { return _max; } + set { _max = value; RaisePropertyChangedAuto(); } + } + + private bool _useMinMax; + /// <summary> + /// Gets or sets a value indicating whether [use minimum maximum]. + /// </summary> + public bool UseMinMax + { + get { return _useMinMax; } + set { _useMinMax = value; RaisePropertyChangedAuto(); } + } + /// <summary> /// Initializes a new instance of the <see cref="SingleGraphItem"/> class. /// </summary> public SingleGraphItem() : base() { + Max = 100; Name = "Single Channel Graph"; Description = "Single channel real-time graph"; Image = ResourceHelper.GetImageFromResources("Images/single-graph.png"); |
