Révision 18f910c6 GES_PAC/ViewModel/BaseViewModel.cs
GES_PAC/ViewModel/BaseViewModel.cs | ||
---|---|---|
5 | 5 |
{ |
6 | 6 |
public class BaseViewModel : INotifyPropertyChanged |
7 | 7 |
{ |
8 |
private bool isBusy; |
|
9 |
|
|
10 |
public bool IsBusy |
|
11 |
{ |
|
12 |
get |
|
13 |
{ |
|
14 |
return isBusy; |
|
15 |
} |
|
16 |
set |
|
17 |
{ |
|
18 |
isBusy = value; |
|
19 |
OnPropertyChanged(nameof(IsBusy)); |
|
20 |
} |
|
21 |
} |
|
22 |
|
|
8 | 23 |
public event PropertyChangedEventHandler PropertyChanged; |
9 | 24 |
protected void OnPropertyChanged([CallerMemberName] string propertyName = null) |
10 | 25 |
{ |
Formats disponibles : Unified diff