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 LocalPwgAlbumListWPF : AsyncObservableCollection<LocalPwgAlbumWPF> |
---|
10 | {} |
---|
11 | |
---|
12 | public class LocalPwgAlbumWPF : 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 String _localDir; |
---|
36 | public String LocalDir |
---|
37 | { |
---|
38 | set { _localDir = value; OnPropertyChanged("LocalDir"); } |
---|
39 | get { return _localDir; } |
---|
40 | } |
---|
41 | |
---|
42 | private Int32 _upperCatId; |
---|
43 | public Int32 UpperCatId |
---|
44 | { |
---|
45 | set { _upperCatId = value; OnPropertyChanged("UpperCatId"); } |
---|
46 | get { return _upperCatId; } |
---|
47 | } |
---|
48 | |
---|
49 | private LocalPwgAlbumListWPF _subAlbums; |
---|
50 | public LocalPwgAlbumListWPF SubAlbums |
---|
51 | { |
---|
52 | set { _subAlbums = value; OnPropertyChanged("SubAlbums"); } |
---|
53 | get { return _subAlbums; } |
---|
54 | } |
---|
55 | |
---|
56 | private LocalPwgImageListWPF _localImages; |
---|
57 | public LocalPwgImageListWPF LocalImages |
---|
58 | { |
---|
59 | set { _localImages = value; OnPropertyChanged("LocalImages"); } |
---|
60 | get { return _localImages; } |
---|
61 | } |
---|
62 | |
---|
63 | public event PropertyChangedEventHandler PropertyChanged; |
---|
64 | protected void OnPropertyChanged(String info) |
---|
65 | { |
---|
66 | if (PropertyChanged != null) |
---|
67 | PropertyChanged(this, new PropertyChangedEventArgs(info)); |
---|
68 | } |
---|
69 | } |
---|
70 | } |
---|