markus / ConvertService / ServiceBase / Markus.Service.StationController / Base / ViewModelBase.cs @ 53c9637d
이력 | 보기 | 이력해설 | 다운로드 (844 Bytes)
1 |
using Microsoft.EntityFrameworkCore.Metadata.Internal; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.ComponentModel; |
5 |
using System.Linq; |
6 |
using System.Linq.Expressions; |
7 |
using System.Text; |
8 |
using System.Threading.Tasks; |
9 |
|
10 |
namespace Markus.Service.StationController.Base |
11 |
{ |
12 |
public abstract class ViewModelBase : Base.NotifyExpectation |
13 |
{ |
14 |
|
15 |
ViewModelBase viewModel; |
16 |
|
17 |
public ViewModelBase ViewModel |
18 |
{ |
19 |
get { return viewModel; } |
20 |
set { viewModel = value; } |
21 |
} |
22 |
|
23 |
public string Name |
24 |
{ |
25 |
get { return ViewModel.Name; } |
26 |
set |
27 |
{ |
28 |
if (ViewModel.Name != value) |
29 |
{ |
30 |
ViewModel.Name = value; |
31 |
OnPropertyChanged(()=>Name); |
32 |
} |
33 |
} |
34 |
} |
35 |
} |
36 |
} |