Line | |
---|
1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using System.ComponentModel; |
---|
6 | |
---|
7 | namespace Com.Piwigo.Wpf.DTO |
---|
8 | { |
---|
9 | public class LocalPwgCategoryListWPF : AsyncObservableCollection<LocalPwgCategoryWPF> |
---|
10 | {} |
---|
11 | |
---|
12 | public class LocalPwgCategoryWPF : INotifyPropertyChanged |
---|
13 | { |
---|
14 | private Int32 _id; |
---|
15 | public Int32 Id |
---|
16 | { |
---|
17 | set { _id = value; OnPropertyChanged("Id"); } |
---|
18 | get { return _id; } |
---|
19 | } |
---|
20 | |
---|
21 | private String _messageInfo; |
---|
22 | public String MessageInfo |
---|
23 | { |
---|
24 | set { _messageInfo = value; OnPropertyChanged("MessageInfo"); } |
---|
25 | get { return _messageInfo; } |
---|
26 | } |
---|
27 | |
---|
28 | private String _name; |
---|
29 | public String Name |
---|
30 | { |
---|
31 | set { _name = value; OnPropertyChanged("Name"); } |
---|
32 | get { return _name; } |
---|
33 | } |
---|
34 | |
---|
35 | private Int32 _upperCatId; |
---|
36 | public Int32 UpperCatId |
---|
37 | { |
---|
38 | set { _upperCatId = value; OnPropertyChanged("UpperCatId"); } |
---|
39 | get { return _upperCatId; } |
---|
40 | } |
---|
41 | |
---|
42 | public event PropertyChangedEventHandler PropertyChanged; |
---|
43 | protected void OnPropertyChanged(String info) |
---|
44 | { |
---|
45 | if (PropertyChanged != null) |
---|
46 | PropertyChanged(this, new PropertyChangedEventArgs(info)); |
---|
47 | } |
---|
48 | } |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.