--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.BaseMVVM/ViewModel/ViewModel.cs Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,23 @@
+using System.ComponentModel;
+
+namespace Iri.Modernisation.BaseMVVM.ViewModel
+{
+ /// <summary>
+ /// Base class for all view models
+ /// </summary>
+ public abstract class ViewModel : INotifyPropertyChanged
+ {
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+
+ protected virtual void OnPropertyChanged(string propertyName)
+ {
+ if (PropertyChanged != null)
+ {
+ PropertyChangedEventArgs _temp = new PropertyChangedEventArgs(propertyName);
+ PropertyChanged(this,_temp);
+ }
+ }
+ }
+}