diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-15 12:50:03 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-15 12:50:03 +0200 |
| commit | 0f6d30eb6a003eee2ebc3008a45170e0c2bb8cdd (patch) | |
| tree | 85e05583eb7a2a6323a8156b8db30a946c74c60b /Software/Visual_Studio/Tango.BL/Entities/TechValve.cs | |
| parent | 6ffe8dafa65ee428aa9866d8b13d1d96e440023a (diff) | |
| download | Tango-0f6d30eb6a003eee2ebc3008a45170e0c2bb8cdd.tar.gz Tango-0f6d30eb6a003eee2ebc3008a45170e0c2bb8cdd.zip | |
Optimized accuracy of CSV recordings!
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/TechValve.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/Entities/TechValve.cs | 72 |
1 files changed, 60 insertions, 12 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/TechValve.cs b/Software/Visual_Studio/Tango.BL/Entities/TechValve.cs index 68c55867d..091e495cb 100644 --- a/Software/Visual_Studio/Tango.BL/Entities/TechValve.cs +++ b/Software/Visual_Studio/Tango.BL/Entities/TechValve.cs @@ -30,6 +30,18 @@ namespace Tango.BL.Entities public partial class TechValve : ObservableEntity<TechValve> { + public event EventHandler<Int32> CodeChanged; + + public event EventHandler<String> NameChanged; + + public event EventHandler<String> DescriptionChanged; + + public event EventHandler<Int32> TypeChanged; + + public event EventHandler<String> State1Changed; + + public event EventHandler<String> State2Changed; + protected Int32 _code; /// <summary> @@ -47,9 +59,15 @@ namespace Tango.BL.Entities set { - _code = value; RaisePropertyChanged(nameof(Code)); - } + if (_code != value) + { + _code = value; + + CodeChanged?.Invoke(this, value); + RaisePropertyChanged(nameof(Code)); + } + } } protected String _name; @@ -69,9 +87,15 @@ namespace Tango.BL.Entities set { - _name = value; RaisePropertyChanged(nameof(Name)); - } + if (_name != value) + { + _name = value; + + NameChanged?.Invoke(this, value); + RaisePropertyChanged(nameof(Name)); + } + } } protected String _description; @@ -91,9 +115,15 @@ namespace Tango.BL.Entities set { - _description = value; RaisePropertyChanged(nameof(Description)); - } + if (_description != value) + { + _description = value; + + DescriptionChanged?.Invoke(this, value); + RaisePropertyChanged(nameof(Description)); + } + } } protected Int32 _type; @@ -114,9 +144,15 @@ namespace Tango.BL.Entities set { - _type = value; RaisePropertyChanged(nameof(Type)); - } + if (_type != value) + { + _type = value; + + TypeChanged?.Invoke(this, value); + RaisePropertyChanged(nameof(Type)); + } + } } protected String _state1; @@ -136,9 +172,15 @@ namespace Tango.BL.Entities set { - _state1 = value; RaisePropertyChanged(nameof(State1)); - } + if (_state1 != value) + { + _state1 = value; + + State1Changed?.Invoke(this, value); + RaisePropertyChanged(nameof(State1)); + } + } } protected String _state2; @@ -158,9 +200,15 @@ namespace Tango.BL.Entities set { - _state2 = value; RaisePropertyChanged(nameof(State2)); - } + if (_state2 != value) + { + _state2 = value; + + State2Changed?.Invoke(this, value); + RaisePropertyChanged(nameof(State2)); + } + } } /// <summary> |
