| | |
| | | private void InitializeComponent() |
| | | { |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CameraForm)); |
| | | cmbBrand = new ComboBox(); |
| | | cmbSN = new ComboBox(); |
| | | cmb_Brand = new ComboBox(); |
| | | cmb_SN = new ComboBox(); |
| | | label1 = new Label(); |
| | | label2 = new Label(); |
| | | btnStartGrab = new Button(); |
| | | btnCloseGrab = new Button(); |
| | | btnGrabOnce = new Button(); |
| | | btnOpen = new Button(); |
| | | btnClose = new Button(); |
| | | btn_StartGrab = new Button(); |
| | | btn_CloseGrab = new Button(); |
| | | btn_GrabOnce = new Button(); |
| | | btn_Open = new Button(); |
| | | btn_Close = new Button(); |
| | | label5 = new Label(); |
| | | lblPicCount = new Label(); |
| | | txtGain = new TextBox(); |
| | |
| | | tableLayoutPanel3 = new TableLayoutPanel(); |
| | | tableLayoutPanel4 = new TableLayoutPanel(); |
| | | tableLayoutPanel5 = new TableLayoutPanel(); |
| | | btnEdit = new Button(); |
| | | btn_Edit = new Button(); |
| | | tableLayoutPanel6 = new TableLayoutPanel(); |
| | | btnSaveImage = new Button(); |
| | | btn_SaveImage = new Button(); |
| | | tableLayoutPanel7 = new TableLayoutPanel(); |
| | | tableLayoutPanel8 = new TableLayoutPanel(); |
| | | tableLayoutPanel1 = new TableLayoutPanel(); |
| | |
| | | cmbImagesPath = new ComboBox(); |
| | | tableLayoutPanel9 = new TableLayoutPanel(); |
| | | ckbLocalTest = new CheckBox(); |
| | | btnAddImages = new Button(); |
| | | btnLocalGrab = new Button(); |
| | | btn_AddImages = new Button(); |
| | | btn_LocalGrab = new Button(); |
| | | tableLayoutPanel10 = new TableLayoutPanel(); |
| | | label6 = new Label(); |
| | | txtTimeout = new TextBox(); |
| | |
| | | panel_2DCameraForm.SuspendLayout(); |
| | | SuspendLayout(); |
| | | // |
| | | // cmbBrand |
| | | // cmb_Brand |
| | | // |
| | | cmbBrand.Dock = DockStyle.Fill; |
| | | cmbBrand.FormattingEnabled = true; |
| | | cmbBrand.Location = new Point(53, 3); |
| | | cmbBrand.Name = "cmbBrand"; |
| | | cmbBrand.Size = new Size(297, 25); |
| | | cmbBrand.TabIndex = 0; |
| | | cmb_Brand.Dock = DockStyle.Fill; |
| | | cmb_Brand.FormattingEnabled = true; |
| | | cmb_Brand.Location = new Point(53, 3); |
| | | cmb_Brand.Name = "cmb_Brand"; |
| | | cmb_Brand.Size = new Size(297, 25); |
| | | cmb_Brand.TabIndex = 0; |
| | | // |
| | | // cmbSN |
| | | // cmb_SN |
| | | // |
| | | cmbSN.Dock = DockStyle.Fill; |
| | | cmbSN.FormattingEnabled = true; |
| | | cmbSN.Location = new Point(53, 3); |
| | | cmbSN.Name = "cmbSN"; |
| | | cmbSN.Size = new Size(297, 25); |
| | | cmbSN.TabIndex = 1; |
| | | cmbSN.SelectedIndexChanged += cmbSN_SelectedIndexChanged; |
| | | cmbSN.MouseDown += cmbSN_MouseDown; |
| | | cmb_SN.Dock = DockStyle.Fill; |
| | | cmb_SN.FormattingEnabled = true; |
| | | cmb_SN.Location = new Point(53, 3); |
| | | cmb_SN.Name = "cmb_SN"; |
| | | cmb_SN.Size = new Size(297, 25); |
| | | cmb_SN.TabIndex = 1; |
| | | cmb_SN.SelectedIndexChanged += cmbSN_SelectedIndexChanged; |
| | | cmb_SN.MouseDown += cmbSN_MouseDown; |
| | | // |
| | | // label1 |
| | | // |
| | |
| | | label2.Text = "SN"; |
| | | label2.TextAlign = ContentAlignment.MiddleCenter; |
| | | // |
| | | // btnStartGrab |
| | | // btn_StartGrab |
| | | // |
| | | btnStartGrab.Dock = DockStyle.Fill; |
| | | btnStartGrab.ForeColor = SystemColors.ControlText; |
| | | btnStartGrab.Location = new Point(91, 3); |
| | | btnStartGrab.Name = "btnStartGrab"; |
| | | btnStartGrab.Size = new Size(82, 28); |
| | | btnStartGrab.TabIndex = 5; |
| | | btnStartGrab.Text = "连续采集"; |
| | | btnStartGrab.UseVisualStyleBackColor = true; |
| | | btnStartGrab.Click += btnStartGrab_Click; |
| | | btn_StartGrab.Dock = DockStyle.Fill; |
| | | btn_StartGrab.ForeColor = SystemColors.ControlText; |
| | | btn_StartGrab.Location = new Point(91, 3); |
| | | btn_StartGrab.Name = "btn_StartGrab"; |
| | | btn_StartGrab.Size = new Size(82, 28); |
| | | btn_StartGrab.TabIndex = 5; |
| | | btn_StartGrab.Text = "连续采集"; |
| | | btn_StartGrab.UseVisualStyleBackColor = true; |
| | | btn_StartGrab.Click += btn_StartGrab_Click; |
| | | // |
| | | // btnCloseGrab |
| | | // btn_CloseGrab |
| | | // |
| | | btnCloseGrab.Dock = DockStyle.Fill; |
| | | btnCloseGrab.ForeColor = SystemColors.Desktop; |
| | | btnCloseGrab.Location = new Point(179, 3); |
| | | btnCloseGrab.Name = "btnCloseGrab"; |
| | | btnCloseGrab.Size = new Size(82, 28); |
| | | btnCloseGrab.TabIndex = 6; |
| | | btnCloseGrab.Text = "关闭采集"; |
| | | btnCloseGrab.UseVisualStyleBackColor = true; |
| | | btnCloseGrab.Click += btnCloseGrab_Click; |
| | | btn_CloseGrab.Dock = DockStyle.Fill; |
| | | btn_CloseGrab.ForeColor = SystemColors.Desktop; |
| | | btn_CloseGrab.Location = new Point(179, 3); |
| | | btn_CloseGrab.Name = "btn_CloseGrab"; |
| | | btn_CloseGrab.Size = new Size(82, 28); |
| | | btn_CloseGrab.TabIndex = 6; |
| | | btn_CloseGrab.Text = "关闭采集"; |
| | | btn_CloseGrab.UseVisualStyleBackColor = true; |
| | | btn_CloseGrab.Click += btn_CloseGrab_Click; |
| | | // |
| | | // btnGrabOnce |
| | | // btn_GrabOnce |
| | | // |
| | | btnGrabOnce.Dock = DockStyle.Fill; |
| | | btnGrabOnce.ForeColor = SystemColors.ControlText; |
| | | btnGrabOnce.Location = new Point(3, 3); |
| | | btnGrabOnce.Name = "btnGrabOnce"; |
| | | btnGrabOnce.Size = new Size(82, 28); |
| | | btnGrabOnce.TabIndex = 7; |
| | | btnGrabOnce.Text = "单张采集"; |
| | | btnGrabOnce.UseVisualStyleBackColor = true; |
| | | btnGrabOnce.Click += btnGrabOnce_Click; |
| | | btn_GrabOnce.Dock = DockStyle.Fill; |
| | | btn_GrabOnce.ForeColor = SystemColors.ControlText; |
| | | btn_GrabOnce.Location = new Point(3, 3); |
| | | btn_GrabOnce.Name = "btn_GrabOnce"; |
| | | btn_GrabOnce.Size = new Size(82, 28); |
| | | btn_GrabOnce.TabIndex = 7; |
| | | btn_GrabOnce.Text = "单张采集"; |
| | | btn_GrabOnce.UseVisualStyleBackColor = true; |
| | | btn_GrabOnce.Click += btn_GrabOnce_Click; |
| | | // |
| | | // btnOpen |
| | | // btn_Open |
| | | // |
| | | btnOpen.Dock = DockStyle.Fill; |
| | | btnOpen.ForeColor = SystemColors.ControlText; |
| | | btnOpen.Location = new Point(3, 3); |
| | | btnOpen.Name = "btnOpen"; |
| | | btnOpen.Size = new Size(82, 28); |
| | | btnOpen.TabIndex = 8; |
| | | btnOpen.Text = "打开"; |
| | | btnOpen.UseVisualStyleBackColor = true; |
| | | btnOpen.Click += btnOpen_Click; |
| | | btn_Open.Dock = DockStyle.Fill; |
| | | btn_Open.ForeColor = SystemColors.ControlText; |
| | | btn_Open.Location = new Point(3, 3); |
| | | btn_Open.Name = "btn_Open"; |
| | | btn_Open.Size = new Size(82, 28); |
| | | btn_Open.TabIndex = 8; |
| | | btn_Open.Text = "打开"; |
| | | btn_Open.UseVisualStyleBackColor = true; |
| | | btn_Open.Click += btn_Open_Click; |
| | | // |
| | | // btnClose |
| | | // btn_Close |
| | | // |
| | | btnClose.Dock = DockStyle.Fill; |
| | | btnClose.ForeColor = SystemColors.ControlText; |
| | | btnClose.Location = new Point(91, 3); |
| | | btnClose.Name = "btnClose"; |
| | | btnClose.Size = new Size(82, 28); |
| | | btnClose.TabIndex = 9; |
| | | btnClose.Text = "关闭"; |
| | | btnClose.UseVisualStyleBackColor = true; |
| | | btnClose.Click += btnClose_Click; |
| | | btn_Close.Dock = DockStyle.Fill; |
| | | btn_Close.ForeColor = SystemColors.ControlText; |
| | | btn_Close.Location = new Point(91, 3); |
| | | btn_Close.Name = "btn_Close"; |
| | | btn_Close.Size = new Size(82, 28); |
| | | btn_Close.TabIndex = 9; |
| | | btn_Close.Text = "关闭"; |
| | | btn_Close.UseVisualStyleBackColor = true; |
| | | btn_Close.Click += btn_Close_Click; |
| | | // |
| | | // label5 |
| | | // |
| | |
| | | txtGain.Name = "txtGain"; |
| | | txtGain.Size = new Size(297, 23); |
| | | txtGain.TabIndex = 21; |
| | | txtGain.TextChanged += txtGain_TextChanged; |
| | | txtGain.TextChanged += txt_Gain_TextChanged; |
| | | // |
| | | // txtExp |
| | | // |
| | |
| | | txtExp.Name = "txtExp"; |
| | | txtExp.Size = new Size(297, 23); |
| | | txtExp.TabIndex = 20; |
| | | txtExp.TextChanged += txtExp_TextChanged; |
| | | txtExp.TextChanged += txt_Exp_TextChanged; |
| | | // |
| | | // label4 |
| | | // |
| | |
| | | tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50F)); |
| | | tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel3.Controls.Add(label1, 0, 0); |
| | | tableLayoutPanel3.Controls.Add(cmbBrand, 1, 0); |
| | | tableLayoutPanel3.Controls.Add(cmb_Brand, 1, 0); |
| | | tableLayoutPanel3.Dock = DockStyle.Fill; |
| | | tableLayoutPanel3.Location = new Point(3, 3); |
| | | tableLayoutPanel3.Name = "tableLayoutPanel3"; |
| | |
| | | tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 50F)); |
| | | tableLayoutPanel4.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel4.Controls.Add(label2, 0, 0); |
| | | tableLayoutPanel4.Controls.Add(cmbSN, 1, 0); |
| | | tableLayoutPanel4.Controls.Add(cmb_SN, 1, 0); |
| | | tableLayoutPanel4.Dock = DockStyle.Fill; |
| | | tableLayoutPanel4.Location = new Point(3, 43); |
| | | tableLayoutPanel4.Name = "tableLayoutPanel4"; |
| | |
| | | tableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); |
| | | tableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); |
| | | tableLayoutPanel5.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F)); |
| | | tableLayoutPanel5.Controls.Add(btnOpen, 0, 0); |
| | | tableLayoutPanel5.Controls.Add(btnClose, 1, 0); |
| | | tableLayoutPanel5.Controls.Add(btnEdit, 3, 0); |
| | | tableLayoutPanel5.Controls.Add(btn_Open, 0, 0); |
| | | tableLayoutPanel5.Controls.Add(btn_Close, 1, 0); |
| | | tableLayoutPanel5.Controls.Add(btn_Edit, 3, 0); |
| | | tableLayoutPanel5.Dock = DockStyle.Fill; |
| | | tableLayoutPanel5.Location = new Point(3, 83); |
| | | tableLayoutPanel5.Name = "tableLayoutPanel5"; |
| | |
| | | tableLayoutPanel5.Size = new Size(353, 34); |
| | | tableLayoutPanel5.TabIndex = 2; |
| | | // |
| | | // btnEdit |
| | | // btn_Edit |
| | | // |
| | | btnEdit.Dock = DockStyle.Fill; |
| | | btnEdit.Enabled = false; |
| | | btnEdit.ForeColor = SystemColors.ControlText; |
| | | btnEdit.Location = new Point(267, 3); |
| | | btnEdit.Name = "btnEdit"; |
| | | btnEdit.Size = new Size(83, 28); |
| | | btnEdit.TabIndex = 10; |
| | | btnEdit.Text = "编辑"; |
| | | btnEdit.UseVisualStyleBackColor = true; |
| | | btnEdit.Click += btnEdit_Click; |
| | | btn_Edit.Dock = DockStyle.Fill; |
| | | btn_Edit.Enabled = false; |
| | | btn_Edit.ForeColor = SystemColors.ControlText; |
| | | btn_Edit.Location = new Point(267, 3); |
| | | btn_Edit.Name = "btn_Edit"; |
| | | btn_Edit.Size = new Size(83, 28); |
| | | btn_Edit.TabIndex = 10; |
| | | btn_Edit.Text = "编辑"; |
| | | btn_Edit.UseVisualStyleBackColor = true; |
| | | btn_Edit.Click += btn_Edit_Click; |
| | | // |
| | | // tableLayoutPanel6 |
| | | // |
| | |
| | | tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25.0006275F)); |
| | | tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25.0006237F)); |
| | | tableLayoutPanel6.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 24.9981289F)); |
| | | tableLayoutPanel6.Controls.Add(btnGrabOnce, 0, 0); |
| | | tableLayoutPanel6.Controls.Add(btnStartGrab, 1, 0); |
| | | tableLayoutPanel6.Controls.Add(btnCloseGrab, 2, 0); |
| | | tableLayoutPanel6.Controls.Add(btnSaveImage, 3, 0); |
| | | tableLayoutPanel6.Controls.Add(btn_GrabOnce, 0, 0); |
| | | tableLayoutPanel6.Controls.Add(btn_StartGrab, 1, 0); |
| | | tableLayoutPanel6.Controls.Add(btn_CloseGrab, 2, 0); |
| | | tableLayoutPanel6.Controls.Add(btn_SaveImage, 3, 0); |
| | | tableLayoutPanel6.Dock = DockStyle.Fill; |
| | | tableLayoutPanel6.Location = new Point(3, 163); |
| | | tableLayoutPanel6.Name = "tableLayoutPanel6"; |
| | |
| | | tableLayoutPanel6.Size = new Size(353, 34); |
| | | tableLayoutPanel6.TabIndex = 24; |
| | | // |
| | | // btnSaveImage |
| | | // btn_SaveImage |
| | | // |
| | | btnSaveImage.Dock = DockStyle.Fill; |
| | | btnSaveImage.ForeColor = SystemColors.Desktop; |
| | | btnSaveImage.Location = new Point(266, 2); |
| | | btnSaveImage.Margin = new Padding(2); |
| | | btnSaveImage.Name = "btnSaveImage"; |
| | | btnSaveImage.Size = new Size(85, 30); |
| | | btnSaveImage.TabIndex = 8; |
| | | btnSaveImage.Text = "保存图片"; |
| | | btnSaveImage.UseVisualStyleBackColor = true; |
| | | btnSaveImage.Click += btnSaveImage_Click; |
| | | btn_SaveImage.Dock = DockStyle.Fill; |
| | | btn_SaveImage.ForeColor = SystemColors.Desktop; |
| | | btn_SaveImage.Location = new Point(266, 2); |
| | | btn_SaveImage.Margin = new Padding(2); |
| | | btn_SaveImage.Name = "btn_SaveImage"; |
| | | btn_SaveImage.Size = new Size(85, 30); |
| | | btn_SaveImage.TabIndex = 8; |
| | | btn_SaveImage.Text = "保存图片"; |
| | | btn_SaveImage.UseVisualStyleBackColor = true; |
| | | btn_SaveImage.Click += btn_SaveImage_Click; |
| | | // |
| | | // tableLayoutPanel7 |
| | | // |
| | |
| | | // btnStartHard |
| | | // |
| | | btnStartHard.Dock = DockStyle.Fill; |
| | | btnStartHard.ForeColor = SystemColors.InfoText; |
| | | btnStartHard.Location = new Point(3, 3); |
| | | btnStartHard.Name = "btnStartHard"; |
| | | btnStartHard.Size = new Size(64, 28); |
| | | btnStartHard.TabIndex = 22; |
| | | btnStartHard.Text = "等待触发"; |
| | | btnStartHard.UseVisualStyleBackColor = true; |
| | | btnStartHard.Click += btnStartHard_Click; |
| | | btnStartHard.Click += btn_StartHard_Click; |
| | | // |
| | | // ckbUpParams |
| | | // |
| | |
| | | tableLayoutPanel9.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F)); |
| | | tableLayoutPanel9.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3333321F)); |
| | | tableLayoutPanel9.Controls.Add(ckbLocalTest, 0, 0); |
| | | tableLayoutPanel9.Controls.Add(btnAddImages, 1, 0); |
| | | tableLayoutPanel9.Controls.Add(btnLocalGrab, 2, 0); |
| | | tableLayoutPanel9.Controls.Add(btn_AddImages, 1, 0); |
| | | tableLayoutPanel9.Controls.Add(btn_LocalGrab, 2, 0); |
| | | tableLayoutPanel9.Dock = DockStyle.Fill; |
| | | tableLayoutPanel9.Location = new Point(3, 403); |
| | | tableLayoutPanel9.Name = "tableLayoutPanel9"; |
| | |
| | | ckbLocalTest.Text = "本地取图"; |
| | | ckbLocalTest.UseVisualStyleBackColor = true; |
| | | // |
| | | // btnAddImages |
| | | // btn_AddImages |
| | | // |
| | | btnAddImages.Dock = DockStyle.Fill; |
| | | btnAddImages.ForeColor = SystemColors.Desktop; |
| | | btnAddImages.Location = new Point(120, 3); |
| | | btnAddImages.Name = "btnAddImages"; |
| | | btnAddImages.Size = new Size(111, 28); |
| | | btnAddImages.TabIndex = 1; |
| | | btnAddImages.Text = "添加图片"; |
| | | btnAddImages.UseVisualStyleBackColor = true; |
| | | btnAddImages.Click += btnAddImages_Click; |
| | | btn_AddImages.Dock = DockStyle.Fill; |
| | | btn_AddImages.ForeColor = SystemColors.Desktop; |
| | | btn_AddImages.Location = new Point(120, 3); |
| | | btn_AddImages.Name = "btn_AddImages"; |
| | | btn_AddImages.Size = new Size(111, 28); |
| | | btn_AddImages.TabIndex = 1; |
| | | btn_AddImages.Text = "添加图片"; |
| | | btn_AddImages.UseVisualStyleBackColor = true; |
| | | btn_AddImages.Click += btn_AddImages_Click; |
| | | // |
| | | // btnLocalGrab |
| | | // btn_LocalGrab |
| | | // |
| | | btnLocalGrab.Dock = DockStyle.Fill; |
| | | btnLocalGrab.ForeColor = SystemColors.Desktop; |
| | | btnLocalGrab.Location = new Point(237, 3); |
| | | btnLocalGrab.Name = "btnLocalGrab"; |
| | | btnLocalGrab.Size = new Size(113, 28); |
| | | btnLocalGrab.TabIndex = 2; |
| | | btnLocalGrab.Text = "本地取图"; |
| | | btnLocalGrab.UseVisualStyleBackColor = true; |
| | | btnLocalGrab.Click += btnLocalGrab_Click; |
| | | btn_LocalGrab.Dock = DockStyle.Fill; |
| | | btn_LocalGrab.ForeColor = SystemColors.Desktop; |
| | | btn_LocalGrab.Location = new Point(237, 3); |
| | | btn_LocalGrab.Name = "btn_LocalGrab"; |
| | | btn_LocalGrab.Size = new Size(113, 28); |
| | | btn_LocalGrab.TabIndex = 2; |
| | | btn_LocalGrab.Text = "本地取图"; |
| | | btn_LocalGrab.UseVisualStyleBackColor = true; |
| | | btn_LocalGrab.Click += btn_LocalGrab_Click; |
| | | // |
| | | // tableLayoutPanel10 |
| | | // |
| | |
| | | |
| | | #endregion |
| | | |
| | | private ComboBox cmbBrand; |
| | | private ComboBox cmbSN; |
| | | private ComboBox cmb_Brand; |
| | | private ComboBox cmb_SN; |
| | | private Label label1; |
| | | private Label label2; |
| | | private Button btnStartGrab; |
| | | private Button btnCloseGrab; |
| | | private Button btnGrabOnce; |
| | | private Button btnOpen; |
| | | private Button btnClose; |
| | | private Button btn_StartGrab; |
| | | private Button btn_CloseGrab; |
| | | private Button btn_GrabOnce; |
| | | private Button btn_Open; |
| | | private Button btn_Close; |
| | | private TextBox txtGain; |
| | | private TextBox txtExp; |
| | | private Label label4; |
| | |
| | | private TableLayoutPanel tableLayoutPanel12; |
| | | private ComboBox cmbImagesPath; |
| | | private CheckBox ckbLocalTest; |
| | | private Button btnAddImages; |
| | | private Button btnLocalGrab; |
| | | private Button btnEdit; |
| | | private Button btn_AddImages; |
| | | private Button btn_LocalGrab; |
| | | private Button btn_Edit; |
| | | private CheckBox ckbUpParams; |
| | | private Button btnSaveImage; |
| | | private Button btn_SaveImage; |
| | | private TableLayoutPanel tableLayoutPanel10; |
| | | private Label label6; |
| | | private TextBox txtTimeout; |