-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram.cs
More file actions
98 lines (79 loc) · 2.89 KB
/
program.cs
File metadata and controls
98 lines (79 loc) · 2.89 KB
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
/* Tools Kleine Helferlein vom Superhandy
* -------------------------------------------
* Anwendung: Testanwendung
* Datei: program.cs
* Version: 12.09.2015
* Besitzer: Mathias Rentsch (rentsch@online.de)
* Lizenz: GPL
*
* Die Anwendung und die Quelltextdateien sind freie Software und stehen unter der
* GNU General Public License. Der Originaltext dieser Lizenz kann eingesehen werden
* unter http://www.gnu.org/licenses/gpl.html.
*/
using System;
using System.Windows.Forms;
using Superhandy.Tools;
namespace InputLineTest
{
public class TestForm : Form
{
private InputLine inputLine1;
private InputLine inputLine2;
private InputLine inputLine3;
private InputLine inputLine4;
private InputLine inputLine5;
public TestForm()
{
inputLine1 = new InputLine();
inputLine2 = new InputLine();
inputLine3 = new InputLine();
inputLine4 = new InputLine();
inputLine5 = new InputLine();
inputLine1.Line = 1;
inputLine1.LabelText = "Vorname";
inputLine1.TextBoxSize = 200;
inputLine2.Line = 2;
inputLine2.LabelText = "Nachname";
inputLine2.TextBoxSize = 200;
inputLine3.Line = 3;
inputLine3.LabelText = "Strasse";
inputLine3.TextBoxSize = 300;
inputLine4.Line = 4;
inputLine4.LabelText = "PLZ";
inputLine4.TextBoxSize = 100;
inputLine5.Line = 5;
inputLine5.LabelText = "Ort";
inputLine5.TextBoxSize = 300;
Controls.Add(inputLine1);
Controls.Add(inputLine2);
Controls.Add(inputLine3);
Controls.Add(inputLine4);
Controls.Add(inputLine5);
BottomBar buttonBar = new BottomBar();
buttonBar.ButtonBarButtons = BottomBarButtons.OKCancel;
// buttonBar.ButtonBarButtons = BottomBarButtons.UserDefined;
// buttonBar.Button1Text = "Senden"; buttonBar.Button1Visible = true;
// buttonBar.Button2Text = "Vergleich"; buttonBar.Button2Visible = true;
// buttonBar.Button3Text = "Import"; buttonBar.Button3Visible = true;
buttonBar.Button1Click += new EventHandler(buttonBar_Button1Click);
buttonBar.Button2Click += new EventHandler(buttonBar_Button2Click);
Controls.Add(buttonBar);
Height = 270;
Width = 550;
}
void buttonBar_Button2Click(object sender, EventArgs e)
{
MessageBox.Show("OK");
}
void buttonBar_Button1Click(object sender, EventArgs e)
{
MessageBox.Show("Abbrechen");
}
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.Run(new TestForm());
}
}
}