MainForm.designer.cs
14.6 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
namespace Acc.Demo
{
partial class MainForm
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
this.imageBox = new Cyotek.Windows.Forms.ImageBox();
this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.打开图片ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.原图ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.元件特征ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.计数ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.buttonOpen = new System.Windows.Forms.Button();
this.buttonCount = new System.Windows.Forms.Button();
this.buttonThesh = new System.Windows.Forms.Button();
this.textBoxThesh = new System.Windows.Forms.TextBox();
this.checkBoxAutoThresh = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.labelFeature = new System.Windows.Forms.Label();
this.labelImageName = new System.Windows.Forms.Label();
this.labelCount = new System.Windows.Forms.Label();
this.labelTime = new System.Windows.Forms.Label();
this.textBoxFeature = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.保存当前图片ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStrip.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// imageBox
//
this.imageBox.AllowDrop = true;
this.imageBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.imageBox.Location = new System.Drawing.Point(12, 42);
this.imageBox.Name = "imageBox";
this.imageBox.Size = new System.Drawing.Size(614, 367);
this.imageBox.TabIndex = 0;
this.imageBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.imageBox_MouseDown);
//
// contextMenuStrip
//
this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.打开图片ToolStripMenuItem,
this.原图ToolStripMenuItem,
this.元件特征ToolStripMenuItem,
this.计数ToolStripMenuItem,
this.保存当前图片ToolStripMenuItem});
this.contextMenuStrip.Name = "contextMenuStrip";
this.contextMenuStrip.Size = new System.Drawing.Size(181, 136);
//
// 打开图片ToolStripMenuItem
//
this.打开图片ToolStripMenuItem.Name = "打开图片ToolStripMenuItem";
this.打开图片ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.打开图片ToolStripMenuItem.Text = "打开图片";
this.打开图片ToolStripMenuItem.Click += new System.EventHandler(this.打开图片ToolStripMenuItem_Click);
//
// 原图ToolStripMenuItem
//
this.原图ToolStripMenuItem.Name = "原图ToolStripMenuItem";
this.原图ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.原图ToolStripMenuItem.Text = "重新加载";
this.原图ToolStripMenuItem.Click += new System.EventHandler(this.原图ToolStripMenuItem_Click);
//
// 元件特征ToolStripMenuItem
//
this.元件特征ToolStripMenuItem.Name = "元件特征ToolStripMenuItem";
this.元件特征ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.元件特征ToolStripMenuItem.Text = "获取元件特征";
this.元件特征ToolStripMenuItem.Click += new System.EventHandler(this.元件特征ToolStripMenuItem_Click);
//
// 计数ToolStripMenuItem
//
this.计数ToolStripMenuItem.Name = "计数ToolStripMenuItem";
this.计数ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.计数ToolStripMenuItem.Text = "计数";
this.计数ToolStripMenuItem.Click += new System.EventHandler(this.计数ToolStripMenuItem_Click);
//
// buttonOpen
//
this.buttonOpen.Location = new System.Drawing.Point(13, 9);
this.buttonOpen.Name = "buttonOpen";
this.buttonOpen.Size = new System.Drawing.Size(75, 23);
this.buttonOpen.TabIndex = 1;
this.buttonOpen.Text = "打开";
this.buttonOpen.UseVisualStyleBackColor = true;
this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
//
// buttonCount
//
this.buttonCount.Location = new System.Drawing.Point(105, 9);
this.buttonCount.Name = "buttonCount";
this.buttonCount.Size = new System.Drawing.Size(75, 23);
this.buttonCount.TabIndex = 2;
this.buttonCount.Text = "计数";
this.buttonCount.UseVisualStyleBackColor = true;
this.buttonCount.Click += new System.EventHandler(this.buttonCount_Click);
//
// buttonThesh
//
this.buttonThesh.Location = new System.Drawing.Point(375, 13);
this.buttonThesh.Name = "buttonThesh";
this.buttonThesh.Size = new System.Drawing.Size(75, 23);
this.buttonThesh.TabIndex = 3;
this.buttonThesh.Text = "二值化";
this.buttonThesh.UseVisualStyleBackColor = true;
this.buttonThesh.Click += new System.EventHandler(this.buttonThesh_Click);
//
// textBoxThesh
//
this.textBoxThesh.Location = new System.Drawing.Point(269, 13);
this.textBoxThesh.Name = "textBoxThesh";
this.textBoxThesh.Size = new System.Drawing.Size(46, 21);
this.textBoxThesh.TabIndex = 4;
this.textBoxThesh.Text = "30";
//
// checkBoxAutoThresh
//
this.checkBoxAutoThresh.AutoSize = true;
this.checkBoxAutoThresh.Location = new System.Drawing.Point(321, 17);
this.checkBoxAutoThresh.Name = "checkBoxAutoThresh";
this.checkBoxAutoThresh.Size = new System.Drawing.Size(48, 16);
this.checkBoxAutoThresh.TabIndex = 5;
this.checkBoxAutoThresh.Text = "自动";
this.checkBoxAutoThresh.UseVisualStyleBackColor = true;
this.checkBoxAutoThresh.CheckedChanged += new System.EventHandler(this.checkBoxAutoThresh_CheckedChanged);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.labelFeature);
this.panel1.Controls.Add(this.labelImageName);
this.panel1.Controls.Add(this.labelCount);
this.panel1.Controls.Add(this.labelTime);
this.panel1.Location = new System.Drawing.Point(-1, 411);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(640, 23);
this.panel1.TabIndex = 7;
//
// labelFeature
//
this.labelFeature.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelFeature.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.labelFeature.Location = new System.Drawing.Point(105, 1);
this.labelFeature.Name = "labelFeature";
this.labelFeature.Size = new System.Drawing.Size(119, 22);
this.labelFeature.TabIndex = 3;
this.labelFeature.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labelImageName
//
this.labelImageName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.labelImageName.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.labelImageName.Location = new System.Drawing.Point(223, 1);
this.labelImageName.Name = "labelImageName";
this.labelImageName.Size = new System.Drawing.Size(317, 22);
this.labelImageName.TabIndex = 2;
this.labelImageName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labelCount
//
this.labelCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelCount.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.labelCount.Location = new System.Drawing.Point(0, 1);
this.labelCount.Name = "labelCount";
this.labelCount.Size = new System.Drawing.Size(108, 22);
this.labelCount.TabIndex = 1;
this.labelCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labelTime
//
this.labelTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.labelTime.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.labelTime.Location = new System.Drawing.Point(540, 1);
this.labelTime.Name = "labelTime";
this.labelTime.Size = new System.Drawing.Size(97, 22);
this.labelTime.TabIndex = 0;
this.labelTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textBoxFeature
//
this.textBoxFeature.Location = new System.Drawing.Point(556, 16);
this.textBoxFeature.Name = "textBoxFeature";
this.textBoxFeature.Size = new System.Drawing.Size(46, 21);
this.textBoxFeature.TabIndex = 8;
this.textBoxFeature.Text = "200";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(473, 19);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 12);
this.label1.TabIndex = 9;
this.label1.Text = "元件特征:";
//
// 保存当前图片ToolStripMenuItem
//
this.保存当前图片ToolStripMenuItem.Name = "保存当前图片ToolStripMenuItem";
this.保存当前图片ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.保存当前图片ToolStripMenuItem.Text = "保存当前图片";
this.保存当前图片ToolStripMenuItem.Click += new System.EventHandler(this.保存当前图片ToolStripMenuItem_Click);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(638, 435);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBoxFeature);
this.Controls.Add(this.panel1);
this.Controls.Add(this.checkBoxAutoThresh);
this.Controls.Add(this.textBoxThesh);
this.Controls.Add(this.buttonThesh);
this.Controls.Add(this.buttonCount);
this.Controls.Add(this.buttonOpen);
this.Controls.Add(this.imageBox);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "MainForm";
this.Text = "上海锐驰点料系统";
this.contextMenuStrip.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Cyotek.Windows.Forms.ImageBox imageBox;
private System.Windows.Forms.Button buttonOpen;
private System.Windows.Forms.Button buttonCount;
private System.Windows.Forms.Button buttonThesh;
private System.Windows.Forms.TextBox textBoxThesh;
private System.Windows.Forms.CheckBox checkBoxAutoThresh;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
private System.Windows.Forms.ToolStripMenuItem 原图ToolStripMenuItem;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label labelTime;
private System.Windows.Forms.Label labelCount;
private System.Windows.Forms.Label labelImageName;
private System.Windows.Forms.Label labelFeature;
private System.Windows.Forms.TextBox textBoxFeature;
private System.Windows.Forms.ToolStripMenuItem 元件特征ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 打开图片ToolStripMenuItem;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ToolStripMenuItem 计数ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem 保存当前图片ToolStripMenuItem;
}
}