markus / KCOM / Common / ThumbnailItem.cs @ 6c687be8
이력 | 보기 | 이력해설 | 다운로드 (2.04 KB)
1 |
using IKCOM; |
---|---|
2 |
using System; |
3 |
using System.Collections.Generic; |
4 |
using System.Collections.ObjectModel; |
5 |
using System.ComponentModel; |
6 |
using System.Linq; |
7 |
using System.Text; |
8 | |
9 |
namespace KCOM.Common |
10 |
{ |
11 |
public class ThumbnailItem : INotifyPropertyChanged |
12 |
{ |
13 |
public ThumbnailItem() |
14 |
{ |
15 |
} |
16 | |
17 |
public Uri ImageUri { get; set; } |
18 | |
19 |
private List<SetColorMarkupItem> _DisplayColorItems; |
20 | |
21 |
public List<SetColorMarkupItem> DisplayColorItems |
22 |
{ |
23 |
get { |
24 | |
25 |
if(_DisplayColorItems == null) |
26 |
{ |
27 |
_DisplayColorItems = new List<SetColorMarkupItem>(); |
28 |
} |
29 | |
30 |
return _DisplayColorItems; |
31 |
} |
32 | |
33 |
set { |
34 | |
35 |
if (_DisplayColorItems != value) |
36 |
{ |
37 |
_DisplayColorItems = value; |
38 | |
39 |
NotifyPropertyChanged("DisplayColorItems"); |
40 |
} |
41 |
} |
42 |
} |
43 | |
44 |
private int _Angle; |
45 | |
46 |
public int Angle |
47 |
{ |
48 |
get |
49 |
{ |
50 |
return _Angle; |
51 |
} |
52 | |
53 |
set |
54 |
{ |
55 |
if (_Angle != value) |
56 |
{ |
57 |
_Angle = value; |
58 | |
59 |
NotifyPropertyChanged("Angle"); |
60 |
} |
61 |
} |
62 |
} |
63 | |
64 |
public int PageNumber { get; set; } |
65 |
|
66 |
//강인구 추가 |
67 |
public double Width { get; set; } |
68 |
public double Height { get; set; } |
69 | |
70 |
/// <summary> |
71 |
/// 페이지 경로 |
72 |
/// 2019.07.03 김태성 추가 |
73 |
/// </summary> |
74 |
public Uri PageUri { get; set; } |
75 | |
76 |
public event PropertyChangedEventHandler PropertyChanged; |
77 | |
78 |
public void NotifyPropertyChanged(string propertyName) |
79 |
{ |
80 |
if (PropertyChanged != null) |
81 |
{ |
82 |
PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); |
83 |
} |
84 |
} |
85 |
} |
86 | |
87 |
//public class SetColorMarkupItem |
88 |
//{ |
89 |
// public string markupID { get; set; } |
90 |
// public string DisplayColor { get; set; } |
91 |
//} |
92 |
} |