aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-11-15 12:50:03 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-11-15 12:50:03 +0200
commit0f6d30eb6a003eee2ebc3008a45170e0c2bb8cdd (patch)
tree85e05583eb7a2a6323a8156b8db30a946c74c60b /Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs
parent6ffe8dafa65ee428aa9866d8b13d1d96e440023a (diff)
downloadTango-0f6d30eb6a003eee2ebc3008a45170e0c2bb8cdd.tar.gz
Tango-0f6d30eb6a003eee2ebc3008a45170e0c2bb8cdd.zip
Optimized accuracy of CSV recordings!
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs36
1 files changed, 30 insertions, 6 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs b/Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs
index de728349f..54121e8a2 100644
--- a/Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs
+++ b/Software/Visual_Studio/Tango.BL/Entities/ApplicationDisplayPanelVersion.cs
@@ -25,6 +25,12 @@ namespace Tango.BL.Entities
public partial class ApplicationDisplayPanelVersion : ObservableEntity<ApplicationDisplayPanelVersion>
{
+ public event EventHandler<Double> VersionChanged;
+
+ public event EventHandler<String> NameChanged;
+
+ public event EventHandler<SynchronizedObservableCollection<Configuration>> ConfigurationsChanged;
+
protected Double _version;
/// <summary>
@@ -42,9 +48,15 @@ namespace Tango.BL.Entities
set
{
- _version = value; RaisePropertyChanged(nameof(Version));
- }
+ if (_version != value)
+ {
+ _version = value;
+
+ VersionChanged?.Invoke(this, value);
+ RaisePropertyChanged(nameof(Version));
+ }
+ }
}
protected String _name;
@@ -64,9 +76,15 @@ namespace Tango.BL.Entities
set
{
- _name = value; RaisePropertyChanged(nameof(Name));
- }
+ if (_name != value)
+ {
+ _name = value;
+
+ NameChanged?.Invoke(this, value);
+ RaisePropertyChanged(nameof(Name));
+ }
+ }
}
protected SynchronizedObservableCollection<Configuration> _configurations;
@@ -84,9 +102,15 @@ namespace Tango.BL.Entities
set
{
- _configurations = value; RaisePropertyChanged(nameof(Configurations));
- }
+ if (_configurations != value)
+ {
+ _configurations = value;
+
+ ConfigurationsChanged?.Invoke(this, value);
+ RaisePropertyChanged(nameof(Configurations));
+ }
+ }
}
/// <summary>