diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-01-10 09:37:05 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2022-01-10 09:37:05 +0200 |
| commit | ea64974107129b33a1e739ffadf2e8f939cb48ac (patch) | |
| tree | e32fb3e1211356977930535788049bf96600bba1 /Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs | |
| parent | b6b16143304b50744e974ddaa9c71c49766be4dc (diff) | |
| download | Tango-ea64974107129b33a1e739ffadf2e8f939cb48ac.tar.gz Tango-ea64974107129b33a1e739ffadf2e8f939cb48ac.zip | |
#5821 , #5831 RML extension . Created new tables in database and corresponding classes in Tango.BL.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs b/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs index f17f39c18..ad32b8fdf 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/MachineBase.cs @@ -95,6 +95,10 @@ namespace Tango.BL.Entities public event EventHandler<Organization> OrganizationChanged; + public event EventHandler<SynchronizedObservableCollection<RmlExtensionColorCalibration>> RmlExtensionColorCalibrationsChanged; + + public event EventHandler<SynchronizedObservableCollection<RmlExtensionColorShade>> RmlExtensionColorShadesChanged; + public event EventHandler<SynchronizedObservableCollection<RmlExtensionTestResult>> RmlExtensionTestResultsChanged; public event EventHandler<SynchronizedObservableCollection<Spool>> SpoolsChanged; @@ -1225,6 +1229,56 @@ namespace Tango.BL.Entities } } + protected SynchronizedObservableCollection<RmlExtensionColorCalibration> _rmlextensioncolorcalibrations; + + /// <summary> + /// Gets or sets the machinebase rml extension color calibrations. + /// </summary> + + public virtual SynchronizedObservableCollection<RmlExtensionColorCalibration> RmlExtensionColorCalibrations + { + get + { + return _rmlextensioncolorcalibrations; + } + + set + { + if (_rmlextensioncolorcalibrations != value) + { + _rmlextensioncolorcalibrations = value; + + OnRmlExtensionColorCalibrationsChanged(value); + + } + } + } + + protected SynchronizedObservableCollection<RmlExtensionColorShade> _rmlextensioncolorshades; + + /// <summary> + /// Gets or sets the machinebase rml extension color shades. + /// </summary> + + public virtual SynchronizedObservableCollection<RmlExtensionColorShade> RmlExtensionColorShades + { + get + { + return _rmlextensioncolorshades; + } + + set + { + if (_rmlextensioncolorshades != value) + { + _rmlextensioncolorshades = value; + + OnRmlExtensionColorShadesChanged(value); + + } + } + } + protected SynchronizedObservableCollection<RmlExtensionTestResult> _rmlextensiontestresults; /// <summary> @@ -1582,6 +1636,24 @@ namespace Tango.BL.Entities } /// <summary> + /// Called when the RmlExtensionColorCalibrations has changed. + /// </summary> + protected virtual void OnRmlExtensionColorCalibrationsChanged(SynchronizedObservableCollection<RmlExtensionColorCalibration> rmlextensioncolorcalibrations) + { + RmlExtensionColorCalibrationsChanged?.Invoke(this, rmlextensioncolorcalibrations); + RaisePropertyChanged(nameof(RmlExtensionColorCalibrations)); + } + + /// <summary> + /// Called when the RmlExtensionColorShades has changed. + /// </summary> + protected virtual void OnRmlExtensionColorShadesChanged(SynchronizedObservableCollection<RmlExtensionColorShade> rmlextensioncolorshades) + { + RmlExtensionColorShadesChanged?.Invoke(this, rmlextensioncolorshades); + RaisePropertyChanged(nameof(RmlExtensionColorShades)); + } + + /// <summary> /// Called when the RmlExtensionTestResults has changed. /// </summary> protected virtual void OnRmlExtensionTestResultsChanged(SynchronizedObservableCollection<RmlExtensionTestResult> rmlextensiontestresults) @@ -1615,6 +1687,10 @@ namespace Tango.BL.Entities MachinesEvents = new SynchronizedObservableCollection<MachinesEvent>(); + RmlExtensionColorCalibrations = new SynchronizedObservableCollection<RmlExtensionColorCalibration>(); + + RmlExtensionColorShades = new SynchronizedObservableCollection<RmlExtensionColorShade>(); + RmlExtensionTestResults = new SynchronizedObservableCollection<RmlExtensionTestResult>(); Spools = new SynchronizedObservableCollection<Spool>(); |
