mentapro / HotelSystem

Example project (MVVM pattern, Entity framework, WPF). Database CRUD operations.
106 stars 33 forks source link

missing ViewModelBase class #2

Open mastakillahBlitzar opened 3 years ago

mastakillahBlitzar commented 3 years ago

The ViewModelBase class is not present

tructran91 commented 5 months ago

@mastakillahBlitzar ViewModelBase is third party GalaSoft.MvvmLight. If you don't wanna install 3party, you can add ViewModelBase class

public class ViewModelBase : INotifyPropertyChanged
{
    public event PropertyChangedEventHandler PropertyChanged;
    public void OnPropertyChanged([CallerMemberName] string propertyName = null)
    {
        if (PropertyChanged != null)
        {
            PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}