blob: 292b80538900e6f1e84d54ac881fd7b2b3276c39 (
plain) (
blame)
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
96
97
98
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace grapher.Models.Options
{
public class TextOption : OptionBase
{
#region Constructors
public TextOption(Label label)
{
Label = label;
Label.AutoSize = false;
Label.Width = 150;
Label.Height = 100;
}
#endregion Constructors
#region Properties
private Label Label { get; }
public override bool Visible
{
get
{
return Label.Visible;
}
}
public override int Top
{
get
{
return Label.Top;
}
set
{
Label.Top = value;
}
}
public override int Height
{
get
{
return Label.Height;
}
}
public override int Width
{
get
{
return Label.Width;
}
set
{
Label.Width = value;
}
}
public override int Left
{
get
{
return Label.Left;
}
set
{
Label.Left = value;
}
}
public override void Hide()
{
Label.Hide();
}
public override void Show(string Name)
{
Label.Show();
Label.Text = Name;
}
public override void AlignActiveValues()
{
// Nothing to do here
}
#endregion Properties
}
}
|