-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.Designer.cs
357 lines (350 loc) · 17.3 KB
/
Form1.Designer.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
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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
namespace WebServer
{
partial class WebServer
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WebServer));
this.label1 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.Status = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.Port = new System.Windows.Forms.NumericUpDown();
this.ChooseDirectory = new System.Windows.Forms.Button();
this.ServingPath = new System.Windows.Forms.Label();
this.PUT = new System.Windows.Forms.CheckBox();
this.DELETE = new System.Windows.Forms.CheckBox();
this.BottomLeftLabel = new System.Windows.Forms.Label();
this.viewOnGithub = new System.Windows.Forms.Label();
this.CORS = new System.Windows.Forms.CheckBox();
this.AutoIndex = new System.Windows.Forms.CheckBox();
this.MSG = new System.Windows.Forms.Label();
this.UpdateTitle = new System.Windows.Forms.Label();
this.UpdateLink = new System.Windows.Forms.Label();
this.UpdateVersion = new System.Windows.Forms.Label();
this.ListDirectory = new System.Windows.Forms.CheckBox();
this.localNetwork = new System.Windows.Forms.CheckBox();
this.URL = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.Port)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Arial", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(63, 21);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(264, 37);
this.label1.TabIndex = 0;
this.label1.Text = "Simple C Server";
//
// button1
//
this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.button1.Location = new System.Drawing.Point(200, 84);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(138, 48);
this.button1.TabIndex = 1;
this.button1.Text = "Toggle";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Status
//
this.Status.AutoSize = true;
this.Status.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Status.Location = new System.Drawing.Point(44, 97);
this.Status.Name = "Status";
this.Status.Size = new System.Drawing.Size(116, 24);
this.Status.TabIndex = 2;
this.Status.Text = "Not Running";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.label2.Location = new System.Drawing.Point(93, 140);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(38, 17);
this.label2.TabIndex = 4;
this.label2.Text = "Port:";
//
// Port
//
this.Port.Cursor = System.Windows.Forms.Cursors.IBeam;
this.Port.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.Port.Location = new System.Drawing.Point(137, 138);
this.Port.Maximum = new decimal(new int[] {
100000,
0,
0,
0});
this.Port.Minimum = new decimal(new int[] {
80,
0,
0,
0});
this.Port.Name = "Port";
this.Port.Size = new System.Drawing.Size(107, 23);
this.Port.TabIndex = 5;
this.Port.Value = new decimal(new int[] {
8080,
0,
0,
0});
this.Port.ValueChanged += new System.EventHandler(this.Port_ValueChanged);
//
// ChooseDirectory
//
this.ChooseDirectory.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.ChooseDirectory.Location = new System.Drawing.Point(113, 227);
this.ChooseDirectory.Name = "ChooseDirectory";
this.ChooseDirectory.Size = new System.Drawing.Size(140, 39);
this.ChooseDirectory.TabIndex = 6;
this.ChooseDirectory.Text = "Choose Directory";
this.ChooseDirectory.UseVisualStyleBackColor = true;
this.ChooseDirectory.Click += new System.EventHandler(this.ChooseDirectory_Click);
//
// ServingPath
//
this.ServingPath.AutoSize = true;
this.ServingPath.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.ServingPath.Location = new System.Drawing.Point(26, 196);
this.ServingPath.Name = "ServingPath";
this.ServingPath.Size = new System.Drawing.Size(125, 17);
this.ServingPath.TabIndex = 7;
this.ServingPath.Text = "Currently Serving: ";
//
// PUT
//
this.PUT.AutoSize = true;
this.PUT.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.PUT.Location = new System.Drawing.Point(22, 272);
this.PUT.Name = "PUT";
this.PUT.Size = new System.Drawing.Size(148, 21);
this.PUT.TabIndex = 8;
this.PUT.Text = "Allow Put Requests";
this.PUT.UseVisualStyleBackColor = true;
this.PUT.CheckStateChanged += new System.EventHandler(this.PUT_CheckStateChanged);
//
// DELETE
//
this.DELETE.AutoSize = true;
this.DELETE.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.DELETE.Location = new System.Drawing.Point(200, 272);
this.DELETE.Name = "DELETE";
this.DELETE.Size = new System.Drawing.Size(168, 21);
this.DELETE.TabIndex = 9;
this.DELETE.Text = "Allow Delete Requests";
this.DELETE.UseVisualStyleBackColor = true;
this.DELETE.CheckStateChanged += new System.EventHandler(this.DELETE_CheckStateChanged);
//
// BottomLeftLabel
//
this.BottomLeftLabel.AutoSize = true;
this.BottomLeftLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.BottomLeftLabel.Location = new System.Drawing.Point(45, 617);
this.BottomLeftLabel.Name = "BottomLeftLabel";
this.BottomLeftLabel.Size = new System.Drawing.Size(139, 17);
this.BottomLeftLabel.TabIndex = 10;
this.BottomLeftLabel.Text = "C Server Version 2.3";
//
// viewOnGithub
//
this.viewOnGithub.AutoSize = true;
this.viewOnGithub.Cursor = System.Windows.Forms.Cursors.Hand;
this.viewOnGithub.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.viewOnGithub.ForeColor = System.Drawing.SystemColors.Highlight;
this.viewOnGithub.Location = new System.Drawing.Point(233, 617);
this.viewOnGithub.Name = "viewOnGithub";
this.viewOnGithub.Size = new System.Drawing.Size(105, 17);
this.viewOnGithub.TabIndex = 11;
this.viewOnGithub.Text = "View on GitHub";
this.viewOnGithub.Click += new System.EventHandler(this.viewOnGithub_Click);
//
// CORS
//
this.CORS.AutoSize = true;
this.CORS.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.CORS.Location = new System.Drawing.Point(21, 299);
this.CORS.Name = "CORS";
this.CORS.Size = new System.Drawing.Size(149, 21);
this.CORS.TabIndex = 12;
this.CORS.Text = "Set CORS Headers";
this.CORS.UseVisualStyleBackColor = true;
this.CORS.CheckStateChanged += new System.EventHandler(this.CORS_CheckStateChanged);
//
// AutoIndex
//
this.AutoIndex.AutoSize = true;
this.AutoIndex.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.AutoIndex.Location = new System.Drawing.Point(200, 299);
this.AutoIndex.Name = "AutoIndex";
this.AutoIndex.Size = new System.Drawing.Size(174, 21);
this.AutoIndex.TabIndex = 13;
this.AutoIndex.Text = "Auto Render index.html";
this.AutoIndex.UseVisualStyleBackColor = true;
this.AutoIndex.CheckStateChanged += new System.EventHandler(this.AutoIndex_CheckStateChanged);
//
// MSG
//
this.MSG.AutoSize = true;
this.MSG.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.MSG.Location = new System.Drawing.Point(44, 169);
this.MSG.Name = "MSG";
this.MSG.Size = new System.Drawing.Size(87, 17);
this.MSG.TabIndex = 15;
this.MSG.Text = "Not Running";
//
// UpdateTitle
//
this.UpdateTitle.AutoSize = true;
this.UpdateTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 15F);
this.UpdateTitle.Location = new System.Drawing.Point(108, 523);
this.UpdateTitle.Name = "UpdateTitle";
this.UpdateTitle.Size = new System.Drawing.Size(160, 25);
this.UpdateTitle.TabIndex = 16;
this.UpdateTitle.Text = "Update Available";
this.UpdateTitle.Visible = false;
//
// UpdateLink
//
this.UpdateLink.AutoSize = true;
this.UpdateLink.Cursor = System.Windows.Forms.Cursors.Hand;
this.UpdateLink.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.UpdateLink.ForeColor = System.Drawing.SystemColors.Highlight;
this.UpdateLink.Location = new System.Drawing.Point(67, 572);
this.UpdateLink.Name = "UpdateLink";
this.UpdateLink.Size = new System.Drawing.Size(255, 17);
this.UpdateLink.TabIndex = 17;
this.UpdateLink.Text = "Click Here to go to the downloads page";
this.UpdateLink.Visible = false;
this.UpdateLink.Click += new System.EventHandler(this.UpdateLink_Click);
//
// UpdateVersion
//
this.UpdateVersion.AutoSize = true;
this.UpdateVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F);
this.UpdateVersion.Location = new System.Drawing.Point(134, 548);
this.UpdateVersion.Name = "UpdateVersion";
this.UpdateVersion.Size = new System.Drawing.Size(106, 15);
this.UpdateVersion.TabIndex = 18;
this.UpdateVersion.Text = "Version null is out!";
this.UpdateVersion.Visible = false;
//
// ListDirectory
//
this.ListDirectory.AutoSize = true;
this.ListDirectory.Checked = true;
this.ListDirectory.CheckState = System.Windows.Forms.CheckState.Checked;
this.ListDirectory.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.ListDirectory.Location = new System.Drawing.Point(22, 326);
this.ListDirectory.Name = "ListDirectory";
this.ListDirectory.Size = new System.Drawing.Size(129, 21);
this.ListDirectory.TabIndex = 19;
this.ListDirectory.Text = "Directory Listing";
this.ListDirectory.UseVisualStyleBackColor = true;
this.ListDirectory.CheckStateChanged += new System.EventHandler(this.ListDirectory_CheckStateChanged);
//
// localNetwork
//
this.localNetwork.AutoSize = true;
this.localNetwork.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F);
this.localNetwork.Location = new System.Drawing.Point(200, 327);
this.localNetwork.Name = "localNetwork";
this.localNetwork.Size = new System.Drawing.Size(171, 21);
this.localNetwork.TabIndex = 20;
this.localNetwork.Text = "Listen on local network";
this.localNetwork.UseVisualStyleBackColor = true;
this.localNetwork.CheckStateChanged += new System.EventHandler(this.localNetwork_CheckStateChanged);
//
// URL
//
this.URL.AutoSize = true;
this.URL.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.URL.Location = new System.Drawing.Point(18, 368);
this.URL.Name = "URL";
this.URL.Size = new System.Drawing.Size(54, 20);
this.URL.TabIndex = 21;
this.URL.Text = "URLs:";
//
// WebServer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(394, 661);
this.Controls.Add(this.URL);
this.Controls.Add(this.localNetwork);
this.Controls.Add(this.ListDirectory);
this.Controls.Add(this.UpdateVersion);
this.Controls.Add(this.UpdateLink);
this.Controls.Add(this.UpdateTitle);
this.Controls.Add(this.MSG);
this.Controls.Add(this.AutoIndex);
this.Controls.Add(this.CORS);
this.Controls.Add(this.viewOnGithub);
this.Controls.Add(this.BottomLeftLabel);
this.Controls.Add(this.DELETE);
this.Controls.Add(this.PUT);
this.Controls.Add(this.ServingPath);
this.Controls.Add(this.ChooseDirectory);
this.Controls.Add(this.Port);
this.Controls.Add(this.label2);
this.Controls.Add(this.Status);
this.Controls.Add(this.button1);
this.Controls.Add(this.label1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximumSize = new System.Drawing.Size(410, 700);
this.MinimumSize = new System.Drawing.Size(410, 700);
this.Name = "WebServer";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Simple Web Server";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.WebServer_FormClosed);
((System.ComponentModel.ISupportInitialize)(this.Port)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label Status;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.NumericUpDown Port;
private System.Windows.Forms.Button ChooseDirectory;
private System.Windows.Forms.Label ServingPath;
private System.Windows.Forms.CheckBox PUT;
private System.Windows.Forms.CheckBox DELETE;
private System.Windows.Forms.Label BottomLeftLabel;
private System.Windows.Forms.Label viewOnGithub;
private System.Windows.Forms.CheckBox CORS;
private System.Windows.Forms.CheckBox AutoIndex;
private System.Windows.Forms.Label MSG;
private System.Windows.Forms.Label UpdateTitle;
private System.Windows.Forms.Label UpdateLink;
private System.Windows.Forms.Label UpdateVersion;
private System.Windows.Forms.CheckBox ListDirectory;
private System.Windows.Forms.CheckBox localNetwork;
private System.Windows.Forms.Label URL;
}
}