markus / ConvertService / ServiceBase / Markus.Service.StationController / Data / CheckBoxItem.cs @ 037ab674
이력 | 보기 | 이력해설 | 다운로드 (1.25 KB)
1 | 037ab674 | semi | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.ComponentModel; |
||
4 | using System.Linq; |
||
5 | using System.Text; |
||
6 | using System.Threading.Tasks; |
||
7 | |||
8 | namespace Markus.Service.StationController.Data |
||
9 | { |
||
10 | class CheckBoxItem : INotifyPropertyChanged |
||
11 | { |
||
12 | public event PropertyChangedEventHandler PropertyChanged; |
||
13 | |||
14 | private void OnPropertyChanged(string propertyName) |
||
15 | { |
||
16 | if (PropertyChanged != null) |
||
17 | { |
||
18 | PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
||
19 | } |
||
20 | |||
21 | } |
||
22 | |||
23 | public bool _IsChecked; |
||
24 | public bool IsChecked |
||
25 | { |
||
26 | get |
||
27 | { |
||
28 | return _IsChecked; |
||
29 | } |
||
30 | set |
||
31 | { |
||
32 | if (_IsChecked != value) |
||
33 | { |
||
34 | _IsChecked = value; |
||
35 | OnPropertyChanged("IsChecked"); |
||
36 | } |
||
37 | } |
||
38 | } |
||
39 | |||
40 | public string _Name; |
||
41 | public string Name |
||
42 | { |
||
43 | get |
||
44 | { |
||
45 | return _Name; |
||
46 | } |
||
47 | set |
||
48 | { |
||
49 | if (_Name != value) |
||
50 | { |
||
51 | _Name = value; |
||
52 | OnPropertyChanged("Name"); |
||
53 | } |
||
54 | } |
||
55 | } |
||
56 | } |
||
57 | } |