aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2017-12-10 19:01:05 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2017-12-10 19:01:05 +0200
commit3fdcdac577d552bbdf6d7320c6ffb0753e810a08 (patch)
tree55e392cea80a3539164abb1fd16c15986c92b287 /Software/Visual_Studio/Tango.Core/ExtendedObject.cs
parent3eabdee9604ad67cdbab7ee35bdfa249402f8831 (diff)
downloadTango-3fdcdac577d552bbdf6d7320c6ffb0753e810a08.tar.gz
Tango-3fdcdac577d552bbdf6d7320c6ffb0753e810a08.zip
Started working on machine designer view models.
Added NAME field to MACHINE table.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/ExtendedObject.cs')
-rw-r--r--Software/Visual_Studio/Tango.Core/ExtendedObject.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
index 84a73bf7c..8ac80034d 100644
--- a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
+++ b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
+using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
@@ -32,6 +33,15 @@ namespace Tango.Core
}
/// <summary>
+ /// Raises the property changed event.
+ /// </summary>
+ /// <param name="propName">Name of the property.</param>
+ protected virtual void RaisePropertyChangedAuto([CallerMemberName] string caller = null)
+ {
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(caller));
+ }
+
+ /// <summary>
/// Raises all relay commands CanExecute methods in the current instance.
/// </summary>
protected virtual void InvalidateRelayCommands()