forked from Montellese/xbmc-on-imon
-
Notifications
You must be signed in to change notification settings - Fork 5
/
DisplayHandler.Text.cs
85 lines (71 loc) · 1.89 KB
/
DisplayHandler.Text.cs
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
namespace iMon.XBMC
{
internal partial class DisplayHandler
{
private struct Text
{
#region Private variables
private string lcd;
private string vfdUpper;
private string vfdLower;
private int delay;
#endregion
#region Public variables
public string Lcd
{
get { return this.lcd; }
}
public string VfdUpper
{
get { return this.vfdUpper; }
}
public string VfdLower
{
get { return this.vfdLower; }
}
public int Delay
{
get { return this.delay; }
}
#endregion
#region Constructor
public Text(string lcd, string vfdUpper, string vfdLower)
{
if (lcd == null)
{
this.lcd = string.Empty;
}
else
{
this.lcd = lcd;
}
if (vfdUpper == null)
{
this.vfdUpper = string.Empty;
}
else
{
this.vfdUpper = vfdUpper;
}
if (vfdLower == null)
{
this.vfdLower = string.Empty;
}
else
{
this.vfdLower = vfdLower;
}
this.delay = 0;
}
public Text(string lcd, string vfdUpper, string vfdLower, int delay)
: this(lcd, vfdUpper, vfdLower)
{
if (this.delay >= 0)
{
this.delay = delay;
}
}
#endregion
}
}
}