17 lines
522 B
C#
17 lines
522 B
C#
using System.ComponentModel;
|
|
|
|
namespace Server_Dashboard {
|
|
|
|
/// <summary>
|
|
/// Base View Model all the other view models inherit from
|
|
/// Makes me write the INotifyPropertyChanged only once
|
|
/// </summary>
|
|
public class BaseViewModel : INotifyPropertyChanged {
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged = (sender, e) => { };
|
|
|
|
protected void OnPropertyChanged(string prop) {
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(prop));
|
|
}
|
|
}
|
|
} |