summaryrefslogtreecommitdiff
path: root/platform/winrt/gsview/RectList.cs
blob: 880f1a374c0f401fc78665d7771174163a252005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace gsview
{
	public enum Link_t
	{
		LINK_GOTO,
		LINK_URI,
		TEXTBOX,
		NOT_SET
	};

	public class RectList : INotifyPropertyChanged
	{
		public String Index
		{
			get;
			set;
		}

		public String Color
		{
			get;
			set;
		}

		public double Height
		{
			get;
			set;
		}

		public double Width
		{
			get;
			set;
		}

		public double X
		{
			get;
			set;
		}

		public double Y
		{
			get;
			set;
		}

		public double Scale
		{
			get;
			set;
		}

		public Link_t Type
		{
			get;
			set;
		}

		public int PageNum
		{
			get;
			set;
		}

		public Uri Urilink
		{
			get;
			set;
		}

		public event PropertyChangedEventHandler PropertyChanged;

		public void PageRefresh()
		{
			if (PropertyChanged != null)
			{
				PropertyChanged(this, new PropertyChangedEventArgs("X"));
				PropertyChanged(this, new PropertyChangedEventArgs("Height"));
				PropertyChanged(this, new PropertyChangedEventArgs("Width"));
				PropertyChanged(this, new PropertyChangedEventArgs("Y"));
			}

		}
	}
}