Repository navigation
Expand file tree
/
Copy pathForm1.Designer.cs
More file actions
415 lines (410 loc) · 20.4 KB
/
Copy pathForm1.Designer.cs
File metadata and controls
415 lines (410 loc) · 20.4 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
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
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
namespace Winform_SQLite
{
partial class Form1
{
private System.ComponentModel.IContainer components = null;
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
private void InitializeComponent()
{
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.btnCreateTempTable = new System.Windows.Forms.Button();
this.btnInsertTemp = new System.Windows.Forms.Button();
this.btnUpdate = new System.Windows.Forms.Button();
this.listLog = new System.Windows.Forms.ListBox();
this.lblLog = new System.Windows.Forms.Label();
this.btnDeleteDevice = new System.Windows.Forms.Button();
this.txtDeviceId = new System.Windows.Forms.TextBox();
this.lblDeviceId = new System.Windows.Forms.Label();
this.btnQueryAllTemp = new System.Windows.Forms.Button();
this.btnQueryByDevice = new System.Windows.Forms.Button();
this.txtDeviceName = new System.Windows.Forms.TextBox();
this.btnQueryByRange = new System.Windows.Forms.Button();
this.txtMinTemp = new System.Windows.Forms.TextBox();
this.txtMaxTemp = new System.Windows.Forms.TextBox();
this.lblTo = new System.Windows.Forms.Label();
this.btnDeleteTemp = new System.Windows.Forms.Button();
this.txtTempId = new System.Windows.Forms.TextBox();
this.lblTempId = new System.Windows.Forms.Label();
this.btnStats = new System.Windows.Forms.Button();
this.btnQueryAllDevices = new System.Windows.Forms.Button();
this.grpDevice = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.lblNewDeviceName = new System.Windows.Forms.Label();
this.txtNewDeviceName = new System.Windows.Forms.TextBox();
this.grpTemp = new System.Windows.Forms.GroupBox();
this.grpQuery = new System.Windows.Forms.GroupBox();
this.grpBatchInsert = new System.Windows.Forms.GroupBox();
this.btnBatchInsertWithTransactionAsync = new System.Windows.Forms.Button();
this.btnBatchInsertWithoutTransactionAsync = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.grpDevice.SuspendLayout();
this.grpTemp.SuspendLayout();
this.grpQuery.SuspendLayout();
this.grpBatchInsert.SuspendLayout();
this.SuspendLayout();
//
// dataGridView1
//
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Location = new System.Drawing.Point(12, 348);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(776, 165);
this.dataGridView1.TabIndex = 0;
//
// btnCreateTempTable
//
this.btnCreateTempTable.Location = new System.Drawing.Point(6, 18);
this.btnCreateTempTable.Name = "btnCreateTempTable";
this.btnCreateTempTable.Size = new System.Drawing.Size(110, 28);
this.btnCreateTempTable.TabIndex = 2;
this.btnCreateTempTable.Text = "创建温度历史表";
this.btnCreateTempTable.UseVisualStyleBackColor = true;
this.btnCreateTempTable.Click += new System.EventHandler(this.btnCreateTempTable_Click);
//
// btnInsertTemp
//
this.btnInsertTemp.Location = new System.Drawing.Point(130, 18);
this.btnInsertTemp.Name = "btnInsertTemp";
this.btnInsertTemp.Size = new System.Drawing.Size(90, 28);
this.btnInsertTemp.TabIndex = 3;
this.btnInsertTemp.Text = "插入温度";
this.btnInsertTemp.UseVisualStyleBackColor = true;
this.btnInsertTemp.Click += new System.EventHandler(this.btnInsertTemp_Click);
//
// btnUpdate
//
this.btnUpdate.Location = new System.Drawing.Point(387, 18);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(90, 28);
this.btnUpdate.TabIndex = 4;
this.btnUpdate.Text = "更新名称";
this.btnUpdate.UseVisualStyleBackColor = true;
this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click);
//
// listLog
//
this.listLog.FormattingEnabled = true;
this.listLog.ItemHeight = 12;
this.listLog.Location = new System.Drawing.Point(12, 242);
this.listLog.Name = "listLog";
this.listLog.Size = new System.Drawing.Size(776, 100);
this.listLog.TabIndex = 6;
//
// lblLog
//
this.lblLog.AutoSize = true;
this.lblLog.Location = new System.Drawing.Point(10, 227);
this.lblLog.Name = "lblLog";
this.lblLog.Size = new System.Drawing.Size(65, 12);
this.lblLog.TabIndex = 5;
this.lblLog.Text = "日志信息:";
//
// btnDeleteDevice
//
this.btnDeleteDevice.Location = new System.Drawing.Point(594, 18);
this.btnDeleteDevice.Name = "btnDeleteDevice";
this.btnDeleteDevice.Size = new System.Drawing.Size(90, 28);
this.btnDeleteDevice.TabIndex = 16;
this.btnDeleteDevice.Text = "删除设备";
this.btnDeleteDevice.UseVisualStyleBackColor = true;
this.btnDeleteDevice.Click += new System.EventHandler(this.btnDeleteDevice_Click);
//
// txtDeviceId
//
this.txtDeviceId.Location = new System.Drawing.Point(544, 20);
this.txtDeviceId.Name = "txtDeviceId";
this.txtDeviceId.Size = new System.Drawing.Size(40, 21);
this.txtDeviceId.TabIndex = 15;
this.txtDeviceId.Text = "1";
//
// lblDeviceId
//
this.lblDeviceId.AutoSize = true;
this.lblDeviceId.Location = new System.Drawing.Point(485, 23);
this.lblDeviceId.Name = "lblDeviceId";
this.lblDeviceId.Size = new System.Drawing.Size(53, 12);
this.lblDeviceId.TabIndex = 14;
this.lblDeviceId.Text = "设备ID:";
//
// btnQueryAllTemp
//
this.btnQueryAllTemp.Location = new System.Drawing.Point(226, 18);
this.btnQueryAllTemp.Name = "btnQueryAllTemp";
this.btnQueryAllTemp.Size = new System.Drawing.Size(90, 28);
this.btnQueryAllTemp.TabIndex = 16;
this.btnQueryAllTemp.Text = "查询温度";
this.btnQueryAllTemp.UseVisualStyleBackColor = true;
this.btnQueryAllTemp.Click += new System.EventHandler(this.btnQueryAllTemp_Click);
//
// btnQueryByDevice
//
this.btnQueryByDevice.Location = new System.Drawing.Point(6, 18);
this.btnQueryByDevice.Name = "btnQueryByDevice";
this.btnQueryByDevice.Size = new System.Drawing.Size(110, 28);
this.btnQueryByDevice.TabIndex = 21;
this.btnQueryByDevice.Text = "按设备名查询";
this.btnQueryByDevice.UseVisualStyleBackColor = true;
this.btnQueryByDevice.Click += new System.EventHandler(this.btnQueryByDevice_Click);
//
// txtDeviceName
//
this.txtDeviceName.Location = new System.Drawing.Point(122, 20);
this.txtDeviceName.Name = "txtDeviceName";
this.txtDeviceName.Size = new System.Drawing.Size(80, 21);
this.txtDeviceName.TabIndex = 22;
this.txtDeviceName.Text = "PLC_01";
//
// btnQueryByRange
//
this.btnQueryByRange.Location = new System.Drawing.Point(212, 18);
this.btnQueryByRange.Name = "btnQueryByRange";
this.btnQueryByRange.Size = new System.Drawing.Size(110, 28);
this.btnQueryByRange.TabIndex = 23;
this.btnQueryByRange.Text = "按温度范围查询";
this.btnQueryByRange.UseVisualStyleBackColor = true;
this.btnQueryByRange.Click += new System.EventHandler(this.btnQueryByRange_Click);
//
// txtMinTemp
//
this.txtMinTemp.Location = new System.Drawing.Point(328, 20);
this.txtMinTemp.Name = "txtMinTemp";
this.txtMinTemp.Size = new System.Drawing.Size(50, 21);
this.txtMinTemp.TabIndex = 24;
this.txtMinTemp.Text = "20";
//
// txtMaxTemp
//
this.txtMaxTemp.Location = new System.Drawing.Point(407, 20);
this.txtMaxTemp.Name = "txtMaxTemp";
this.txtMaxTemp.Size = new System.Drawing.Size(50, 21);
this.txtMaxTemp.TabIndex = 26;
this.txtMaxTemp.Text = "30";
//
// lblTo
//
this.lblTo.AutoSize = true;
this.lblTo.Location = new System.Drawing.Point(384, 23);
this.lblTo.Name = "lblTo";
this.lblTo.Size = new System.Drawing.Size(17, 12);
this.lblTo.TabIndex = 25;
this.lblTo.Text = "至";
//
// btnDeleteTemp
//
this.btnDeleteTemp.Location = new System.Drawing.Point(445, 18);
this.btnDeleteTemp.Name = "btnDeleteTemp";
this.btnDeleteTemp.Size = new System.Drawing.Size(90, 28);
this.btnDeleteTemp.TabIndex = 19;
this.btnDeleteTemp.Text = "删除温度";
this.btnDeleteTemp.UseVisualStyleBackColor = true;
this.btnDeleteTemp.Click += new System.EventHandler(this.btnDeleteTemp_Click);
//
// txtTempId
//
this.txtTempId.Location = new System.Drawing.Point(395, 20);
this.txtTempId.Name = "txtTempId";
this.txtTempId.Size = new System.Drawing.Size(40, 21);
this.txtTempId.TabIndex = 18;
this.txtTempId.Text = "1";
//
// lblTempId
//
this.lblTempId.AutoSize = true;
this.lblTempId.Location = new System.Drawing.Point(324, 23);
this.lblTempId.Name = "lblTempId";
this.lblTempId.Size = new System.Drawing.Size(53, 12);
this.lblTempId.TabIndex = 17;
this.lblTempId.Text = "温度ID:";
//
// btnStats
//
this.btnStats.Location = new System.Drawing.Point(463, 15);
this.btnStats.Name = "btnStats";
this.btnStats.Size = new System.Drawing.Size(90, 28);
this.btnStats.TabIndex = 27;
this.btnStats.Text = "统计记录数";
this.btnStats.UseVisualStyleBackColor = true;
this.btnStats.Click += new System.EventHandler(this.btnStats_Click);
//
// btnQueryAllDevices
//
this.btnQueryAllDevices.Location = new System.Drawing.Point(130, 18);
this.btnQueryAllDevices.Name = "btnQueryAllDevices";
this.btnQueryAllDevices.Size = new System.Drawing.Size(90, 28);
this.btnQueryAllDevices.TabIndex = 11;
this.btnQueryAllDevices.Text = "查询设备";
this.btnQueryAllDevices.UseVisualStyleBackColor = true;
this.btnQueryAllDevices.Click += new System.EventHandler(this.btnQueryAllDevices_Click);
//
// grpDevice
//
this.grpDevice.Controls.Add(this.button1);
this.grpDevice.Controls.Add(this.btnQueryAllDevices);
this.grpDevice.Controls.Add(this.btnUpdate);
this.grpDevice.Controls.Add(this.lblNewDeviceName);
this.grpDevice.Controls.Add(this.txtNewDeviceName);
this.grpDevice.Controls.Add(this.lblDeviceId);
this.grpDevice.Controls.Add(this.txtDeviceId);
this.grpDevice.Controls.Add(this.btnDeleteDevice);
this.grpDevice.Location = new System.Drawing.Point(12, 8);
this.grpDevice.Name = "grpDevice";
this.grpDevice.Size = new System.Drawing.Size(776, 50);
this.grpDevice.TabIndex = 10;
this.grpDevice.TabStop = false;
this.grpDevice.Text = "设备操作";
//
// button1
//
this.button1.Location = new System.Drawing.Point(6, 18);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(110, 28);
this.button1.TabIndex = 1;
this.button1.Text = "创建Device表";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// lblNewDeviceName
//
this.lblNewDeviceName.AutoSize = true;
this.lblNewDeviceName.Location = new System.Drawing.Point(230, 23);
this.lblNewDeviceName.Name = "lblNewDeviceName";
this.lblNewDeviceName.Size = new System.Drawing.Size(53, 12);
this.lblNewDeviceName.TabIndex = 12;
this.lblNewDeviceName.Text = "新名称:";
//
// txtNewDeviceName
//
this.txtNewDeviceName.Location = new System.Drawing.Point(301, 20);
this.txtNewDeviceName.Name = "txtNewDeviceName";
this.txtNewDeviceName.Size = new System.Drawing.Size(80, 21);
this.txtNewDeviceName.TabIndex = 13;
//
// grpTemp
//
this.grpTemp.Controls.Add(this.btnCreateTempTable);
this.grpTemp.Controls.Add(this.btnInsertTemp);
this.grpTemp.Controls.Add(this.btnQueryAllTemp);
this.grpTemp.Controls.Add(this.lblTempId);
this.grpTemp.Controls.Add(this.txtTempId);
this.grpTemp.Controls.Add(this.btnDeleteTemp);
this.grpTemp.Location = new System.Drawing.Point(12, 118);
this.grpTemp.Name = "grpTemp";
this.grpTemp.Size = new System.Drawing.Size(776, 50);
this.grpTemp.TabIndex = 15;
this.grpTemp.TabStop = false;
this.grpTemp.Text = "温度操作";
//
// grpQuery
//
this.grpQuery.Controls.Add(this.btnQueryByDevice);
this.grpQuery.Controls.Add(this.txtDeviceName);
this.grpQuery.Controls.Add(this.btnQueryByRange);
this.grpQuery.Controls.Add(this.txtMinTemp);
this.grpQuery.Controls.Add(this.lblTo);
this.grpQuery.Controls.Add(this.txtMaxTemp);
this.grpQuery.Controls.Add(this.btnStats);
this.grpQuery.Location = new System.Drawing.Point(12, 174);
this.grpQuery.Name = "grpQuery";
this.grpQuery.Size = new System.Drawing.Size(776, 50);
this.grpQuery.TabIndex = 20;
this.grpQuery.TabStop = false;
this.grpQuery.Text = "条件查询";
//
// grpBatchInsert
//
this.grpBatchInsert.Controls.Add(this.btnBatchInsertWithTransactionAsync);
this.grpBatchInsert.Controls.Add(this.btnBatchInsertWithoutTransactionAsync);
this.grpBatchInsert.Location = new System.Drawing.Point(12, 64);
this.grpBatchInsert.Name = "grpBatchInsert";
this.grpBatchInsert.Size = new System.Drawing.Size(776, 50);
this.grpBatchInsert.TabIndex = 21;
this.grpBatchInsert.TabStop = false;
this.grpBatchInsert.Text = "批量插入测试";
//
// btnBatchInsertWithTransactionAsync
//
this.btnBatchInsertWithTransactionAsync.Location = new System.Drawing.Point(6, 18);
this.btnBatchInsertWithTransactionAsync.Name = "btnBatchInsertWithTransactionAsync";
this.btnBatchInsertWithTransactionAsync.Size = new System.Drawing.Size(150, 28);
this.btnBatchInsertWithTransactionAsync.TabIndex = 28;
this.btnBatchInsertWithTransactionAsync.Text = "异步带事务批量插入";
this.btnBatchInsertWithTransactionAsync.UseVisualStyleBackColor = true;
this.btnBatchInsertWithTransactionAsync.Click += new System.EventHandler(this.btnBatchInsertWithTransactionAsync_Click);
//
// btnBatchInsertWithoutTransactionAsync
//
this.btnBatchInsertWithoutTransactionAsync.Location = new System.Drawing.Point(162, 18);
this.btnBatchInsertWithoutTransactionAsync.Name = "btnBatchInsertWithoutTransactionAsync";
this.btnBatchInsertWithoutTransactionAsync.Size = new System.Drawing.Size(150, 28);
this.btnBatchInsertWithoutTransactionAsync.TabIndex = 29;
this.btnBatchInsertWithoutTransactionAsync.Text = "异步无事务批量插入";
this.btnBatchInsertWithoutTransactionAsync.UseVisualStyleBackColor = true;
this.btnBatchInsertWithoutTransactionAsync.Click += new System.EventHandler(this.btnBatchInsertWithoutTransactionAsync_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 540);
this.Controls.Add(this.grpBatchInsert);
this.Controls.Add(this.grpQuery);
this.Controls.Add(this.grpTemp);
this.Controls.Add(this.grpDevice);
this.Controls.Add(this.listLog);
this.Controls.Add(this.lblLog);
this.Controls.Add(this.dataGridView1);
this.Name = "Form1";
this.Text = "SQLite学习 - 第2天:事务与批量插入";
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.grpDevice.ResumeLayout(false);
this.grpDevice.PerformLayout();
this.grpTemp.ResumeLayout(false);
this.grpTemp.PerformLayout();
this.grpQuery.ResumeLayout(false);
this.grpQuery.PerformLayout();
this.grpBatchInsert.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Button btnCreateTempTable;
private System.Windows.Forms.Button btnInsertTemp;
private System.Windows.Forms.Button btnUpdate;
private System.Windows.Forms.ListBox listLog;
private System.Windows.Forms.Label lblLog;
private System.Windows.Forms.Button btnDeleteDevice;
private System.Windows.Forms.TextBox txtDeviceId;
private System.Windows.Forms.Label lblDeviceId;
private System.Windows.Forms.Button btnQueryAllTemp;
private System.Windows.Forms.Button btnQueryByDevice;
private System.Windows.Forms.TextBox txtDeviceName;
private System.Windows.Forms.Button btnQueryByRange;
private System.Windows.Forms.TextBox txtMinTemp;
private System.Windows.Forms.TextBox txtMaxTemp;
private System.Windows.Forms.Label lblTo;
private System.Windows.Forms.Button btnDeleteTemp;
private System.Windows.Forms.TextBox txtTempId;
private System.Windows.Forms.Label lblTempId;
private System.Windows.Forms.Button btnStats;
private System.Windows.Forms.Button btnQueryAllDevices;
private System.Windows.Forms.GroupBox grpDevice;
private System.Windows.Forms.GroupBox grpTemp;
private System.Windows.Forms.GroupBox grpQuery;
private System.Windows.Forms.GroupBox grpBatchInsert;
private System.Windows.Forms.TextBox txtNewDeviceName;
private System.Windows.Forms.Label lblNewDeviceName;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button btnBatchInsertWithTransactionAsync;
private System.Windows.Forms.Button btnBatchInsertWithoutTransactionAsync;
}
}