1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Linq; |
---|
4 | using System.Text; |
---|
5 | using System.ComponentModel; |
---|
6 | using Com.Piwigo.Lib.DTO; |
---|
7 | |
---|
8 | namespace Com.Piwigo.Wpf.DTO |
---|
9 | { |
---|
10 | public class LocalPwgImageListWPF : AsyncObservableCollection<LocalPwgImageWPF> |
---|
11 | {} |
---|
12 | |
---|
13 | public class LocalPwgImageWPF : INotifyPropertyChanged |
---|
14 | { |
---|
15 | //FileInfo highResFile, FileInfo lowResFile, FileInfo thumbFile, String imageName, String imageAuthor, DateTime creationDate, |
---|
16 | // String authorComment, List<String> lstAlbums, List<String> lstTags, PwgConfidentLevelEnum? confidentLevel |
---|
17 | |
---|
18 | private Int32 _id; |
---|
19 | public Int32 Id |
---|
20 | { |
---|
21 | set { _id = value; OnPropertyChanged("Id"); } |
---|
22 | get { return _id; } |
---|
23 | } |
---|
24 | |
---|
25 | private String _authorComment; |
---|
26 | public String AuthorComment |
---|
27 | { |
---|
28 | set { _authorComment = value; OnPropertyChanged("AuthorComment"); } |
---|
29 | get { return _authorComment; } |
---|
30 | } |
---|
31 | |
---|
32 | private String _name; |
---|
33 | public String Name |
---|
34 | { |
---|
35 | set { _name = value; OnPropertyChanged("Name"); } |
---|
36 | get { return _name; } |
---|
37 | } |
---|
38 | |
---|
39 | private String _localFile; |
---|
40 | public String LocalFile |
---|
41 | { |
---|
42 | set { _localFile = value; OnPropertyChanged("LocalFile"); } |
---|
43 | get { return _localFile; } |
---|
44 | } |
---|
45 | |
---|
46 | private Int32 _upperCatId; |
---|
47 | public Int32 UpperCatId |
---|
48 | { |
---|
49 | set { _upperCatId = value; OnPropertyChanged("UpperCatId"); } |
---|
50 | get { return _upperCatId; } |
---|
51 | } |
---|
52 | |
---|
53 | private AsyncObservableCollection<PwgTagWPF> _lstTags; |
---|
54 | public AsyncObservableCollection<PwgTagWPF> LstTags |
---|
55 | { |
---|
56 | set { _lstTags = value; OnPropertyChanged("LstTags"); } |
---|
57 | get { return _lstTags; } |
---|
58 | } |
---|
59 | |
---|
60 | private PwgConfidentLevelEnum _confidentialLevel; |
---|
61 | public PwgConfidentLevelEnum ConfidentialLevel |
---|
62 | { |
---|
63 | set { _confidentialLevel = value; OnPropertyChanged("ConfidentialLevel"); } |
---|
64 | get { return _confidentialLevel; } |
---|
65 | } |
---|
66 | |
---|
67 | public event PropertyChangedEventHandler PropertyChanged; |
---|
68 | protected void OnPropertyChanged(String info) |
---|
69 | { |
---|
70 | if (PropertyChanged != null) |
---|
71 | PropertyChanged(this, new PropertyChangedEventArgs(info)); |
---|
72 | } |
---|
73 | |
---|
74 | |
---|
75 | } |
---|
76 | } |
---|