diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs b/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs index 357be1666..59881f3d5 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/RmlBase.cs @@ -111,6 +111,8 @@ namespace Tango.BL.Entities public event EventHandler<Double> DefaultLiquidFactorChanged; + public event EventHandler<Nullable<Int32>> MachineTypeChanged; + public event EventHandler<BtsrApplicationType> BtsrApplicationTypeChanged; public event EventHandler<BtsrYarnType> BtsrYarnTypeChanged; @@ -1569,6 +1571,33 @@ namespace Tango.BL.Entities } } + protected Nullable<Int32> _machinetype; + + /// <summary> + /// Gets or sets the rmlbase machine type. + /// </summary> + + [Column("MACHINE_TYPE")] + + public Nullable<Int32> MachineType + { + get + { + return _machinetype; + } + + set + { + if (_machinetype != value) + { + _machinetype = value; + + OnMachineTypeChanged(value); + + } + } + } + protected BtsrApplicationType _btsrapplicationtype; /// <summary> @@ -2500,6 +2529,15 @@ namespace Tango.BL.Entities } /// <summary> + /// Called when the MachineType has changed. + /// </summary> + protected virtual void OnMachineTypeChanged(Nullable<Int32> machinetype) + { + MachineTypeChanged?.Invoke(this, machinetype); + RaisePropertyChanged(nameof(MachineType)); + } + + /// <summary> /// Called when the BtsrApplicationType has changed. /// </summary> protected virtual void OnBtsrApplicationTypeChanged(BtsrApplicationType btsrapplicationtype) |
