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
95
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.ComponentModel;
namespace Anoto
{
public enum Categories { Strip, StripBoard, Screen };
public enum SubCategories {NotDefined, Information, C0, C1, C2, C4, CallSign, Name, AircraftType, CruseSpeed, Departure, Arrival, SSR, InputFL, PrintTime, Sector, Frequency, FL1, FL2,
Beacon0, Beacon1, Beacon2, Beacon3, Beacon4, Beacon5, Beacon6, Beacon7, Beacon8, Beacon9,
Time0, Time1, Time2, Time3, Time4, Time5, Time6, Time7, Time8, Time9,
Unknown
};
[DefaultPropertyAttribute("PagesIP")]
public class AnotoHotArea
{
public static string[] PagesIP = {
"1728.0.0.0",
"1728.0.0.1",
"1728.0.0.2",
"1728.0.0.3",
"1728.0.0.4",
"1728.0.0.5",
"1728.0.0.6",
"1728.0.0.7",
"1728.0.0.8",
"1728.0.0.9",
"1728.0.0.10",
"1728.0.0.11",
"1728.0.0.12",
"1728.0.0.13",
"1728.0.0.14",
"1728.0.0.15",
"1728.0.0.16",
"1728.0.0.17",
"1728.0.0.18",
"1728.0.0.19",
"1728.0.0.20"
};
public override string ToString()
{
return this.Category.ToString();
}
private Rectangle _Rectangle;
[CategoryAttribute("HotBox"), DescriptionAttribute("the active hotbox")]
public Rectangle Rectangle
{
get { return _Rectangle; }
set { _Rectangle = value; }
}
private int _PageIndex;
[CategoryAttribute("HotBox"), DescriptionAttribute("the page Index")]
public int PageIndex
{
get { return _PageIndex; }
set { _PageIndex = value; }
}
[CategoryAttribute("HotBox"), DescriptionAttribute("the page name")]
public string Page
{
get {
if (_PageIndex != -1)
return PagesIP[_PageIndex];
else
return "Multi pages";
}
}
private Categories _Category;
[CategoryAttribute("Category"), DescriptionAttribute("the main category")]
public Categories Category
{
get { return _Category; }
set { _Category = value; }
}
private SubCategories _SubCategory;
[CategoryAttribute("Category"), DescriptionAttribute("the sub category")]
public SubCategories SubCategory
{
get { return _SubCategory; }
set { _SubCategory = value; }
}
}
}
|