diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-10-19 17:23:24 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-10-19 17:25:22 +0300 |
| commit | b6745cf00a2aedae8da24a2477d1000f30e7e1d3 (patch) | |
| tree | 0035b1984a542846f186fbc613e9925dc1d168d0 /Software/Visual_Studio/Tango.BL/Entities | |
| parent | 3fc440bd00595d660299de7da0fce21945014df4 (diff) | |
| download | Tango-b6745cf00a2aedae8da24a2477d1000f30e7e1d3.tar.gz Tango-b6745cf00a2aedae8da24a2477d1000f30e7e1d3.zip | |
Added Number of Spools to Job table.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/JobBase.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs b/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs index f37848b5e..83912de98 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/JobBase.cs @@ -83,6 +83,8 @@ namespace Tango.BL.Entities public event EventHandler<Int32> VersionChanged; + public event EventHandler<Int32> NumberOfSpoolsChanged; + public event EventHandler<ColorCatalog> ColorCatalogChanged; public event EventHandler<ColorSpace> ColorSpaceChanged; @@ -1079,6 +1081,33 @@ namespace Tango.BL.Entities } } + protected Int32 _numberofspools; + + /// <summary> + /// Gets or sets the jobbase number of spools. + /// </summary> + + [Column("NUMBER_OF_SPOOLS")] + + public Int32 NumberOfSpools + { + get + { + return _numberofspools; + } + + set + { + if (_numberofspools != value) + { + _numberofspools = value; + + OnNumberOfSpoolsChanged(value); + + } + } + } + protected ColorCatalog _colorcatalog; /// <summary> @@ -1638,6 +1667,15 @@ namespace Tango.BL.Entities } /// <summary> + /// Called when the NumberOfSpools has changed. + /// </summary> + protected virtual void OnNumberOfSpoolsChanged(Int32 numberofspools) + { + NumberOfSpoolsChanged?.Invoke(this, numberofspools); + RaisePropertyChanged(nameof(NumberOfSpools)); + } + + /// <summary> /// Called when the ColorCatalog has changed. /// </summary> protected virtual void OnColorCatalogChanged(ColorCatalog colorcatalog) |
