Archived
1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Tetris/ViewsModels/ViewModel.cs

14 lines
372 B
C#
Raw Permalink Normal View History

2022-04-06 11:39:36 +02:00
using System.ComponentModel;
2022-04-06 11:15:55 +02:00
namespace Tetris.ViewsModels;
2022-04-06 11:39:36 +02:00
2022-04-06 11:15:55 +02:00
public class ViewModel : INotifyPropertyChanged
{
2022-04-06 11:39:36 +02:00
public event PropertyChangedEventHandler PropertyChanged;
2022-04-06 11:15:55 +02:00
protected virtual void OnPropertyChanged(string propertyName)
{
2022-04-06 11:39:36 +02:00
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
2022-04-06 11:15:55 +02:00
}