aboutsummaryrefslogtreecommitdiffstats
path: root/WarframeClock/BindableBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'WarframeClock/BindableBase.cs')
-rw-r--r--WarframeClock/BindableBase.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/WarframeClock/BindableBase.cs b/WarframeClock/BindableBase.cs
new file mode 100644
index 0000000..3f81f24
--- /dev/null
+++ b/WarframeClock/BindableBase.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+
+namespace WarframeClock
+{
+ internal abstract class BindableBase : INotifyPropertyChanged
+ {
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected void NotifyPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+}