-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimerForm.Designer.cs
More file actions
300 lines (295 loc) · 14.2 KB
/
TimerForm.Designer.cs
File metadata and controls
300 lines (295 loc) · 14.2 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
// Timer form UI components
using System.Diagnostics;
namespace KidTimerLock
{
partial class TimerForm
{
private System.ComponentModel.IContainer components = null;
private System.Windows.Forms.Label labelTimeRemaining;
private System.Windows.Forms.Label autoStartLabel;
private System.Windows.Forms.TextBox textBoxMinutes;
private System.Windows.Forms.Button buttonStart;
private System.Windows.Forms.Button buttonStop;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TimerForm));
labelTimeRemaining = new System.Windows.Forms.Label();
textBoxMinutes = new System.Windows.Forms.TextBox();
buttonStart = new System.Windows.Forms.Button();
buttonStop = new System.Windows.Forms.Button();
autoStartLabel = new System.Windows.Forms.Label();
autostartCheckbox = new System.Windows.Forms.CheckBox();
warningSettingsHeading = new System.Windows.Forms.Label();
comboFlashCount = new System.Windows.Forms.ComboBox();
flashCount_label = new System.Windows.Forms.Label();
flashCount_toolTip = new System.Windows.Forms.ToolTip(components);
comboFlashInterval = new System.Windows.Forms.ComboBox();
label1 = new System.Windows.Forms.Label();
flashInterval_toolTip = new System.Windows.Forms.ToolTip(components);
checkBoxAudibleBeep = new System.Windows.Forms.CheckBox();
audibleBeep_toolTip = new System.Windows.Forms.ToolTip(components);
label2 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
linkVersionLabel = new System.Windows.Forms.LinkLabel();
label4 = new System.Windows.Forms.Label();
notifyIcon1 = new System.Windows.Forms.NotifyIcon(components);
paypalLinkLabel = new System.Windows.Forms.LinkLabel();
label5 = new System.Windows.Forms.Label();
SuspendLayout();
//
// labelTimeRemaining
//
labelTimeRemaining.AutoSize = true;
labelTimeRemaining.Location = new System.Drawing.Point(22, 23);
labelTimeRemaining.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
labelTimeRemaining.Name = "labelTimeRemaining";
labelTimeRemaining.Size = new System.Drawing.Size(120, 15);
labelTimeRemaining.TabIndex = 0;
labelTimeRemaining.Text = "Time remaining: --:--";
//
// textBoxMinutes
//
textBoxMinutes.Location = new System.Drawing.Point(168, 20);
textBoxMinutes.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
textBoxMinutes.Name = "textBoxMinutes";
textBoxMinutes.Size = new System.Drawing.Size(58, 23);
textBoxMinutes.TabIndex = 1;
//
// buttonStart
//
buttonStart.Location = new System.Drawing.Point(260, 17);
buttonStart.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
buttonStart.Name = "buttonStart";
buttonStart.Size = new System.Drawing.Size(88, 27);
buttonStart.TabIndex = 2;
buttonStart.Text = "&Start";
buttonStart.UseVisualStyleBackColor = true;
buttonStart.Click += buttonStart_Click;
//
// buttonStop
//
buttonStop.Enabled = false;
buttonStop.Location = new System.Drawing.Point(367, 17);
buttonStop.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
buttonStop.Name = "buttonStop";
buttonStop.Size = new System.Drawing.Size(88, 27);
buttonStop.TabIndex = 2;
buttonStop.Text = "Sto&p";
buttonStop.UseVisualStyleBackColor = true;
buttonStop.Click += buttonStop_Click;
//
// autoStartLabel
//
autoStartLabel.AutoSize = true;
autoStartLabel.Location = new System.Drawing.Point(263, 103);
autoStartLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
autoStartLabel.Name = "autoStartLabel";
autoStartLabel.Size = new System.Drawing.Size(0, 15);
autoStartLabel.TabIndex = 0;
autoStartLabel.Click += autoStartLabel_Click;
//
// autostartCheckbox
//
autostartCheckbox.AutoSize = true;
autostartCheckbox.Location = new System.Drawing.Point(25, 112);
autostartCheckbox.Name = "autostartCheckbox";
autostartCheckbox.Size = new System.Drawing.Size(153, 19);
autostartCheckbox.TabIndex = 3;
autostartCheckbox.Text = "Autostart with Windows";
autostartCheckbox.UseVisualStyleBackColor = true;
//
// warningSettingsHeading
//
warningSettingsHeading.AutoSize = true;
warningSettingsHeading.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point);
warningSettingsHeading.Location = new System.Drawing.Point(22, 144);
warningSettingsHeading.Name = "warningSettingsHeading";
warningSettingsHeading.Size = new System.Drawing.Size(221, 15);
warningSettingsHeading.TabIndex = 4;
warningSettingsHeading.Text = "Settings for the timer warning overlay";
//
// comboFlashCount
//
comboFlashCount.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
comboFlashCount.FormattingEnabled = true;
comboFlashCount.Items.AddRange(new object[] { 2, 3, 4, 5, 6, 7, 8 });
comboFlashCount.Location = new System.Drawing.Point(25, 170);
comboFlashCount.Name = "comboFlashCount";
comboFlashCount.Size = new System.Drawing.Size(34, 23);
comboFlashCount.TabIndex = 5;
comboFlashCount.SelectedIndexChanged += GenericControlChanged;
//
// flashCount_label
//
flashCount_label.AutoSize = true;
flashCount_label.Location = new System.Drawing.Point(67, 173);
flashCount_label.Name = "flashCount_label";
flashCount_label.Size = new System.Drawing.Size(187, 15);
flashCount_label.TabIndex = 6;
flashCount_label.Text = "Times to blink each timer warning";
flashCount_toolTip.SetToolTip(flashCount_label, "Sets the number of times the timer warning will flash when it is displayed. You may want it to flash fewer times so as to minimise interference for the user.");
//
// flashCount_toolTip
//
flashCount_toolTip.Popup += flashCount_toolTip_Popup;
//
// comboFlashInterval
//
comboFlashInterval.FormattingEnabled = true;
comboFlashInterval.Items.AddRange(new object[] { 300, 500, 750, 1000 });
comboFlashInterval.Location = new System.Drawing.Point(25, 206);
comboFlashInterval.Name = "comboFlashInterval";
comboFlashInterval.Size = new System.Drawing.Size(51, 23);
comboFlashInterval.TabIndex = 7;
comboFlashInterval.SelectedIndexChanged += GenericControlChanged;
//
// label1
//
label1.AutoSize = true;
label1.Location = new System.Drawing.Point(88, 210);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(155, 15);
label1.TabIndex = 8;
label1.Text = "Delay in ms between flashes";
flashInterval_toolTip.SetToolTip(label1, "Sets the speed at which the overlay will flash the warning. Lower is faster. Anything under 300 ms is hard to read");
//
// flashInterval_toolTip
//
flashInterval_toolTip.Popup += flashInterval_toolTip_Popup;
//
// checkBoxAudibleBeep
//
checkBoxAudibleBeep.AutoSize = true;
checkBoxAudibleBeep.Location = new System.Drawing.Point(276, 174);
checkBoxAudibleBeep.Name = "checkBoxAudibleBeep";
checkBoxAudibleBeep.Size = new System.Drawing.Size(119, 19);
checkBoxAudibleBeep.TabIndex = 9;
checkBoxAudibleBeep.Tag = "checkBoxAudibleBeep";
checkBoxAudibleBeep.Text = "Play audible beep";
audibleBeep_toolTip.SetToolTip(checkBoxAudibleBeep, "Play an audible beep as the warning flashes - uses a nasty system beep because this is most likely to be heard even with system sounds turned down");
checkBoxAudibleBeep.UseVisualStyleBackColor = true;
checkBoxAudibleBeep.CheckedChanged += GenericControlChanged;
//
// audibleBeep_toolTip
//
audibleBeep_toolTip.Popup += audibleBeeptoolTip_Popup;
//
// label2
//
label2.Location = new System.Drawing.Point(22, 52);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(433, 37);
label2.TabIndex = 10;
label2.Text = "Enter time until lock in minutes - e.g. 15 or 63 or 94.\nWarnings will be shown at 10 minutes, 5 minutes and 1 minute. ";
//
// label3
//
label3.Location = new System.Drawing.Point(0, 0);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(100, 23);
label3.TabIndex = 13;
//
// linkVersionLabel
//
linkVersionLabel.AutoSize = true;
linkVersionLabel.Location = new System.Drawing.Point(395, 264);
linkVersionLabel.Name = "linkVersionLabel";
linkVersionLabel.Size = new System.Drawing.Size(72, 15);
linkVersionLabel.TabIndex = 12;
linkVersionLabel.TabStop = true;
linkVersionLabel.Text = "Version 0.0.0";
linkVersionLabel.LinkClicked += linkVersionLabel_LinkClicked;
//
// label4
//
label4.Location = new System.Drawing.Point(224, 264);
label4.Name = "label4";
label4.Size = new System.Drawing.Size(171, 19);
label4.TabIndex = 14;
label4.Text = "Click to check for new version:";
label4.Click += label4_Click_1;
//
// notifyIcon1
//
notifyIcon1.Icon = (System.Drawing.Icon)resources.GetObject("notifyIcon1.Icon");
notifyIcon1.Text = "notifyIcon1";
notifyIcon1.Visible = true;
//
// paypalLinkLabel
//
paypalLinkLabel.AutoSize = true;
paypalLinkLabel.Location = new System.Drawing.Point(361, 285);
paypalLinkLabel.Name = "paypalLinkLabel";
paypalLinkLabel.Size = new System.Drawing.Size(108, 15);
paypalLinkLabel.TabIndex = 15;
paypalLinkLabel.TabStop = true;
paypalLinkLabel.Text = "Consider donating.";
paypalLinkLabel.LinkClicked += paypalLinkLabel_LinkClicked;
//
// label5
//
label5.Location = new System.Drawing.Point(146, 285);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(218, 19);
label5.TabIndex = 16;
label5.Text = "Did this utility restore peace to your life?";
//
// TimerForm
//
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(479, 309);
Controls.Add(label5);
Controls.Add(paypalLinkLabel);
Controls.Add(label4);
Controls.Add(linkVersionLabel);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(checkBoxAudibleBeep);
Controls.Add(label1);
Controls.Add(comboFlashInterval);
Controls.Add(flashCount_label);
Controls.Add(comboFlashCount);
Controls.Add(warningSettingsHeading);
Controls.Add(autostartCheckbox);
Controls.Add(buttonStart);
Controls.Add(buttonStop);
Controls.Add(textBoxMinutes);
Controls.Add(labelTimeRemaining);
Controls.Add(autoStartLabel);
Icon = (System.Drawing.Icon)resources.GetObject("$this.Icon");
Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
Name = "TimerForm";
Text = "Kid Timer Lock";
Load += TimerForm_Load;
ResumeLayout(false);
PerformLayout();
}
private System.Windows.Forms.CheckBox autostartCheckbox;
private System.Windows.Forms.Label warningSettingsHeading;
private System.Windows.Forms.ComboBox comboFlashCount;
private System.Windows.Forms.Label flashCount_label;
private System.Windows.Forms.ToolTip flashCount_toolTip;
private System.Windows.Forms.ComboBox comboFlashInterval;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ToolTip flashInterval_toolTip;
private System.Windows.Forms.CheckBox checkBoxAudibleBeep;
private System.Windows.Forms.ToolTip audibleBeep_toolTip;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.LinkLabel linkVersionLabel;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.NotifyIcon notifyIcon1;
private System.Windows.Forms.LinkLabel paypalLinkLabel;
private System.Windows.Forms.Label label5;
}
}