markus / KCOM / Common / ThumbnailItem.cs @ b1fc6833
이력 | 보기 | 이력해설 | 다운로드 (3.13 KB)
1 | 787a4489 | KangIngu | using IKCOM; |
---|---|---|---|
2 | using System; |
||
3 | using System.Collections.Generic; |
||
4 | 81e3a60f | 송근호 | using System.Collections.ObjectModel; |
5 | using System.ComponentModel; |
||
6 | 787a4489 | KangIngu | using System.Linq; |
7 | using System.Text; |
||
8 | |||
9 | namespace KCOM.Common |
||
10 | { |
||
11 | 81e3a60f | 송근호 | public class ThumbnailItem : INotifyPropertyChanged |
12 | 787a4489 | KangIngu | { |
13 | public ThumbnailItem() |
||
14 | { |
||
15 | 2007ecaa | taeseongkim | |
16 | 787a4489 | KangIngu | } |
17 | cdfb57ff | taeseongkim | |
18 | 2007ecaa | taeseongkim | private Uri _ImageUri; |
19 | cdfb57ff | taeseongkim | |
20 | 2007ecaa | taeseongkim | public Uri ImageUri |
21 | { |
||
22 | get { |
||
23 | |||
24 | if (_ImageUri == null) |
||
25 | { |
||
26 | _ImageUri = new Uri("/KCOM;component/Resources/Images/ExtImage/bmp.png", UriKind.Relative); |
||
27 | } |
||
28 | |||
29 | return _ImageUri; |
||
30 | } |
||
31 | set |
||
32 | { |
||
33 | if (_ImageUri != value) |
||
34 | { |
||
35 | _ImageUri = value; |
||
36 | |||
37 | NotifyPropertyChanged("ImageUri"); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 | |||
42 | private bool _IsActive; |
||
43 | |||
44 | public bool IsActive |
||
45 | { |
||
46 | get { return _IsActive; } |
||
47 | set |
||
48 | { |
||
49 | if (_IsActive != value) |
||
50 | { |
||
51 | _IsActive = value; |
||
52 | |||
53 | NotifyPropertyChanged("IsActive"); |
||
54 | } |
||
55 | } |
||
56 | } |
||
57 | |||
58 | private int _PageNumber; |
||
59 | |||
60 | public int PageNumber |
||
61 | { |
||
62 | get { return _PageNumber; } |
||
63 | set |
||
64 | { |
||
65 | if (_PageNumber != value) |
||
66 | { |
||
67 | _PageNumber = value; |
||
68 | //NotifyPropertyChanged("PageNumber"); |
||
69 | } |
||
70 | } |
||
71 | } |
||
72 | |||
73 | |||
74 | //public int PageNumber { get; set; } |
||
75 | 8ff1bf3a | 송근호 | private List<SetColorMarkupItem> _DisplayColorItems; |
76 | 81e3a60f | 송근호 | |
77 | 8ff1bf3a | 송근호 | public List<SetColorMarkupItem> DisplayColorItems |
78 | 81e3a60f | 송근호 | { |
79 | 6c687be8 | taeseongkim | get { |
80 | return _DisplayColorItems; |
||
81 | } |
||
82 | |||
83 | set { |
||
84 | _DisplayColorItems = value; |
||
85 | |||
86 | NotifyPropertyChanged("DisplayColorItems"); |
||
87 | } |
||
88 | } |
||
89 | |||
90 | 2007ecaa | taeseongkim | private double _Angle; |
91 | 6c687be8 | taeseongkim | |
92 | 2007ecaa | taeseongkim | public double Angle |
93 | 6c687be8 | taeseongkim | { |
94 | get |
||
95 | { |
||
96 | return _Angle; |
||
97 | } |
||
98 | |||
99 | set |
||
100 | { |
||
101 | if (_Angle != value) |
||
102 | { |
||
103 | _Angle = value; |
||
104 | |||
105 | NotifyPropertyChanged("Angle"); |
||
106 | } |
||
107 | 81e3a60f | 송근호 | } |
108 | } |
||
109 | 6c687be8 | taeseongkim | |
110 | 787a4489 | KangIngu | //강인구 추가 |
111 | public double Width { get; set; } |
||
112 | public double Height { get; set; } |
||
113 | cdfb57ff | taeseongkim | |
114 | /// <summary> |
||
115 | /// 페이지 경로 |
||
116 | /// 2019.07.03 김태성 추가 |
||
117 | /// </summary> |
||
118 | public Uri PageUri { get; set; } |
||
119 | 81e3a60f | 송근호 | |
120 | public event PropertyChangedEventHandler PropertyChanged; |
||
121 | |||
122 | public void NotifyPropertyChanged(string propertyName) |
||
123 | { |
||
124 | 2007ecaa | taeseongkim | //if (propertyName == "IsActive" && this.IsActive) |
125 | //{ |
||
126 | // NotifyPropertyChanged("ImageUri"); |
||
127 | //} |
||
128 | |||
129 | 81e3a60f | 송근호 | if (PropertyChanged != null) |
130 | { |
||
131 | PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
||
132 | } |
||
133 | } |
||
134 | 787a4489 | KangIngu | } |
135 | |||
136 | //public class SetColorMarkupItem |
||
137 | //{ |
||
138 | // public string markupID { get; set; } |
||
139 | // public string DisplayColor { get; set; } |
||
140 | //} |
||
141 | } |