diff options
| author | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
|---|---|---|
| committer | Mirta <mirta@twine-s.com> | 2020-12-30 16:39:52 +0200 |
| commit | 00a491d93733d4625ad329b2ba8237f445364b3f (patch) | |
| tree | 4b24c6fa78d7648f4bb7cefafa464bb0b063fec4 /Software/Visual_Studio/Tango.BL/Entities/HardwareMotorBase.cs | |
| parent | 124ad4150f80c6846fdee41dbbda9848c105f6e5 (diff) | |
| download | Tango-00a491d9.tar.gz Tango-00a491d9.zip | |
merge
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/HardwareMotorBase.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/HardwareMotorBase.cs | 44 |
1 files changed, 5 insertions, 39 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/HardwareMotorBase.cs b/Software/Visual_Studio/Tango.BL/Entities/HardwareMotorBase.cs index 58118869c..e08a2b5b0 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/HardwareMotorBase.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/HardwareMotorBase.cs @@ -19,10 +19,14 @@ using System.Linq; using Tango.DAL.Remote.DB; using Tango.Core; using System.ComponentModel; -using Tango.Core.CustomAttributes; namespace Tango.BL.Entities { + + /// <summary> + /// + /// </summary> + [Table("HARDWARE_MOTORS")] public abstract class HardwareMotorBase : ObservableEntity<HardwareMotor> { @@ -95,8 +99,6 @@ namespace Tango.BL.Entities public event EventHandler<Boolean> ActiveChanged; - public event EventHandler<Int32> P01ConfigWordChanged; - public event EventHandler<HardwareMotorType> HardwareMotorTypeChanged; public event EventHandler<HardwareVersion> HardwareVersionChanged; @@ -1071,33 +1073,6 @@ namespace Tango.BL.Entities } } - protected Int32 _p01configword; - - /// <summary> - /// Gets or sets the hardwaremotorbase p01 config word. - /// </summary> - - [Column("P01_CONFIG_WORD")] - - public Int32 P01ConfigWord - { - get - { - return _p01configword; - } - - set - { - if (_p01configword != value) - { - _p01configword = value; - - OnP01ConfigWordChanged(value); - - } - } - } - protected HardwareMotorType _hardwaremotortype; /// <summary> @@ -1469,15 +1444,6 @@ namespace Tango.BL.Entities } /// <summary> - /// Called when the P01ConfigWord has changed. - /// </summary> - protected virtual void OnP01ConfigWordChanged(Int32 p01configword) - { - P01ConfigWordChanged?.Invoke(this, p01configword); - RaisePropertyChanged(nameof(P01ConfigWord)); - } - - /// <summary> /// Called when the HardwareMotorType has changed. /// </summary> protected virtual void OnHardwareMotorTypeChanged(HardwareMotorType hardwaremotortype) |
