1 | using System; |
---|
2 | using System.Collections.Generic; |
---|
3 | using System.Text; |
---|
4 | |
---|
5 | using Com.Piwigo.Lib.DTO; |
---|
6 | using System.ComponentModel; |
---|
7 | using System.Collections.ObjectModel; |
---|
8 | |
---|
9 | namespace Com.Piwigo.Wpf.DTO |
---|
10 | { |
---|
11 | |
---|
12 | public class PwgImageWPF : 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 Int32 _width; |
---|
22 | public Int32 Width |
---|
23 | { |
---|
24 | set { _width = value; OnPropertyChanged("Width"); } |
---|
25 | get { return _width; } |
---|
26 | } |
---|
27 | |
---|
28 | private Int32 _height; |
---|
29 | public Int32 Height |
---|
30 | { |
---|
31 | set { _height = value; OnPropertyChanged("Height"); } |
---|
32 | get { return _height; } |
---|
33 | } |
---|
34 | |
---|
35 | private String _file; |
---|
36 | public String File |
---|
37 | { |
---|
38 | set { _file = value; OnPropertyChanged("File"); } |
---|
39 | get { return _file; } |
---|
40 | } |
---|
41 | |
---|
42 | private Uri _urlThunb; |
---|
43 | public Uri UrlThunb |
---|
44 | { |
---|
45 | set { _urlThunb = value; OnPropertyChanged("UrlThunb"); } |
---|
46 | get { return _urlThunb; } |
---|
47 | } |
---|
48 | |
---|
49 | private Uri _urlElement; |
---|
50 | public Uri UrlElement |
---|
51 | { |
---|
52 | set { _urlElement = value; OnPropertyChanged("UrlElement"); } |
---|
53 | get { return _urlElement; } |
---|
54 | } |
---|
55 | |
---|
56 | private Uri _urlHighDef; |
---|
57 | public Uri UrlHighDef |
---|
58 | { |
---|
59 | set { _urlHighDef = value; OnPropertyChanged("UrlHighDef"); } |
---|
60 | get { return _urlHighDef; } |
---|
61 | } |
---|
62 | |
---|
63 | private Int64 _counter; |
---|
64 | public Int64 Counter |
---|
65 | { |
---|
66 | set { _counter = value; OnPropertyChanged("Counter"); } |
---|
67 | get { return _counter; } |
---|
68 | } |
---|
69 | |
---|
70 | private ObservableCollection<PwgTag> _tags; |
---|
71 | public ObservableCollection<PwgTag> Tags |
---|
72 | { |
---|
73 | set { _tags = value; OnPropertyChanged("Tags"); } |
---|
74 | get { return _tags; } |
---|
75 | } |
---|
76 | |
---|
77 | //public List<PwgCategoryWPF> Categories { get; set; } |
---|
78 | private ObservableCollection<PwgCategoryWPF> _categories; |
---|
79 | public ObservableCollection<PwgCategoryWPF> Categories |
---|
80 | { |
---|
81 | set { _categories = value; OnPropertyChanged("Categories"); } |
---|
82 | get { return _categories; } |
---|
83 | } |
---|
84 | public event PropertyChangedEventHandler PropertyChanged; |
---|
85 | private void OnPropertyChanged(String info) |
---|
86 | { |
---|
87 | if (PropertyChanged != null) |
---|
88 | PropertyChanged(this, new PropertyChangedEventArgs(info)); |
---|
89 | } |
---|
90 | } |
---|
91 | |
---|
92 | public class PwgImageRate : INotifyPropertyChanged |
---|
93 | { |
---|
94 | private Int32 _count; |
---|
95 | public Int32 Count |
---|
96 | { |
---|
97 | set { _count = value; OnPropertyChanged("Count"); } |
---|
98 | get { return _count; } |
---|
99 | } |
---|
100 | |
---|
101 | private Double _average; |
---|
102 | public Double Average |
---|
103 | { |
---|
104 | set { _average = value; OnPropertyChanged("Average"); } |
---|
105 | get { return _average; } |
---|
106 | } |
---|
107 | |
---|
108 | private Double _stdev; |
---|
109 | public Double Stdev |
---|
110 | { |
---|
111 | set { _stdev = value; OnPropertyChanged("Stdev"); } |
---|
112 | get { return _stdev; } |
---|
113 | } |
---|
114 | |
---|
115 | |
---|
116 | public event PropertyChangedEventHandler PropertyChanged; |
---|
117 | private void OnPropertyChanged(String info) |
---|
118 | { |
---|
119 | if (PropertyChanged != null) |
---|
120 | PropertyChanged(this, new PropertyChangedEventArgs(info)); |
---|
121 | } |
---|
122 | } |
---|
123 | } |
---|