markus / ConvertService / ServiceBase / Markus.Service.StationController / Data / MenuItem.cs @ af9bffc5
이력 | 보기 | 이력해설 | 다운로드 (1.37 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace Markus.Service.StationController.Data |
8 |
{ |
9 |
public class MenuItem :Mvvm.ToolKit.NotifyExpectation |
10 |
{ |
11 |
public MenuItem() |
12 |
{ |
13 |
|
14 |
} |
15 |
|
16 |
public MenuItem(string name,object content) |
17 |
{ |
18 |
Name = name; |
19 |
Content = content; |
20 |
} |
21 |
|
22 |
private string _name; |
23 |
private object _content; |
24 |
private string _description; |
25 |
private bool _IsSelected; |
26 |
|
27 |
public object Content |
28 |
{ |
29 |
get => _content; |
30 |
set |
31 |
{ |
32 |
_content = value; |
33 |
OnPropertyChanged(() => Content); |
34 |
} |
35 |
} |
36 |
|
37 |
public string Name |
38 |
{ |
39 |
get => _name; |
40 |
set |
41 |
{ |
42 |
_name = value; |
43 |
OnPropertyChanged(() => Name); |
44 |
} |
45 |
} |
46 |
public bool IsSelected |
47 |
{ |
48 |
get => _IsSelected; |
49 |
set |
50 |
{ |
51 |
_IsSelected = value; |
52 |
OnPropertyChanged(() => IsSelected); |
53 |
} |
54 |
} |
55 |
|
56 |
public string Description |
57 |
{ |
58 |
get => _description; |
59 |
set |
60 |
{ |
61 |
_description = value; |
62 |
OnPropertyChanged(() => Description); |
63 |
} |
64 |
} |
65 |
} |
66 |
} |