Skip to content

Instantly share code, notes, and snippets.

@icebeam7

icebeam7/BaseViewModel.cs

Last active Dec 18, 2019
Embed
What would you like to do?
AnomalyDetector: BaseViewModel.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace AdExchangeAnalyzer.ViewModels
{
public class BaseViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string propertyName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
private bool isBusy;
public bool IsBusy
{
get { return isBusy; }
set { isBusy = value; OnPropertyChanged(); }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.