프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Common / ThumbnailItem.cs @ 6c687be8

이력 | 보기 | 이력해설 | 다운로드 (2.04 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
        }
16 cdfb57ff taeseongkim
17 787a4489 KangIngu
        public Uri ImageUri { get; set; }
18 cdfb57ff taeseongkim
19 8ff1bf3a 송근호
        private List<SetColorMarkupItem> _DisplayColorItems;
20 81e3a60f 송근호
21 8ff1bf3a 송근호
        public List<SetColorMarkupItem> DisplayColorItems
22 81e3a60f 송근호
        {
23 6c687be8 taeseongkim
            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 81e3a60f 송근호
            }
62
        }
63
64 787a4489 KangIngu
        public int PageNumber { get; set; }
65 6c687be8 taeseongkim
 
66 787a4489 KangIngu
        //강인구 추가
67
        public double Width { get; set; }
68
        public double Height { get; set; }
69 cdfb57ff taeseongkim
70
        /// <summary>
71
        /// 페이지 경로
72
        /// 2019.07.03 김태성 추가
73
        /// </summary>
74
        public Uri PageUri { get; set; }
75 81e3a60f 송근호
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 787a4489 KangIngu
    }
86
87
    //public class SetColorMarkupItem
88
    //{
89
    //    public string markupID { get; set; }
90
    //    public string DisplayColor { get; set; }
91
    //}
92
}
클립보드 이미지 추가 (최대 크기: 500 MB)