markus / ConvertService / ServiceBase / Markus.Mvvm.ToolKit / ViewModelBase.cs @ 45f9a2ad
이력 | 보기 | 이력해설 | 다운로드 (589 Bytes)
1 |
namespace Markus.Mvvm.ToolKit |
---|---|
2 |
{ |
3 |
public abstract class ViewModelBase : NotifyExpectation |
4 |
{ |
5 |
|
6 |
ViewModelBase viewModel; |
7 |
|
8 |
public ViewModelBase ViewModel |
9 |
{ |
10 |
get { return viewModel; } |
11 |
set { viewModel = value; } |
12 |
} |
13 |
|
14 |
public string Name |
15 |
{ |
16 |
get { return ViewModel.Name; } |
17 |
set |
18 |
{ |
19 |
if (ViewModel.Name != value) |
20 |
{ |
21 |
ViewModel.Name = value; |
22 |
OnPropertyChanged(()=>Name); |
23 |
} |
24 |
} |
25 |
} |
26 |
} |
27 |
} |