From 46431fb658701489f8d5de4475b02df728c51f36 Mon Sep 17 00:00:00 2001
From: chunxiaqiu <1057644574@qq.com>
Date: 星期三, 18 三月 2026 15:48:26 +0800
Subject: [PATCH] 新增:读码器功能模块,集成华睿读码器并初步实现读码功能
---
LB_VisionProcesses/BarcodeReaders/BarcodeReaderForm.Designer.cs | 255 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 255 insertions(+), 0 deletions(-)
diff --git a/LB_VisionProcesses/BarcodeReaders/BarcodeReaderForm.Designer.cs b/LB_VisionProcesses/BarcodeReaders/BarcodeReaderForm.Designer.cs
new file mode 100644
index 0000000..c08d3ea
--- /dev/null
+++ b/LB_VisionProcesses/BarcodeReaders/BarcodeReaderForm.Designer.cs
@@ -0,0 +1,255 @@
+namespace LB_VisionProcesses.BarcodeReaders
+{
+ partial class BarcodeReaderForm
+ {
+ private System.ComponentModel.IContainer components = null;
+
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ private void InitializeComponent()
+ {
+ this.themeForm = new ReaLTaiizor.Forms.ThemeForm();
+ this.pnlMain = new ReaLTaiizor.Controls.Panel();
+ this.controlBox1 = new ReaLTaiizor.Controls.ControlBox();
+ this.grpControl = new System.Windows.Forms.GroupBox();
+ this.btnRefresh = new System.Windows.Forms.Button();
+ this.btnSoftTrigger = new System.Windows.Forms.Button();
+ this.btnStop = new System.Windows.Forms.Button();
+ this.btnStart = new System.Windows.Forms.Button();
+ this.btnClose = new System.Windows.Forms.Button();
+ this.btnOpen = new System.Windows.Forms.Button();
+ this.cmbSN = new System.Windows.Forms.ComboBox();
+ this.lblSN = new System.Windows.Forms.Label();
+ this.cmbBrand = new System.Windows.Forms.ComboBox();
+ this.lblBrand = new System.Windows.Forms.Label();
+ this.grpParams = new System.Windows.Forms.GroupBox();
+ this.txtTimeout = new System.Windows.Forms.TextBox();
+ this.lblTimeout = new System.Windows.Forms.Label();
+ this.radHardTrigger = new System.Windows.Forms.RadioButton();
+ this.radSoftTrigger = new System.Windows.Forms.RadioButton();
+ this.grpResult = new System.Windows.Forms.GroupBox();
+ this.lstBarcodes = new System.Windows.Forms.ListBox();
+ this.pnlImage = new System.Windows.Forms.Panel();
+ this.picPreview = new System.Windows.Forms.PictureBox();
+ this.statusStrip = new System.Windows.Forms.StatusStrip();
+ this.lblStatus = new System.Windows.Forms.ToolStripStatusLabel();
+
+ this.themeForm.SuspendLayout();
+ this.pnlMain.SuspendLayout();
+ this.grpControl.SuspendLayout();
+ this.grpParams.SuspendLayout();
+ this.grpResult.SuspendLayout();
+ this.pnlImage.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.picPreview)).BeginInit();
+ this.statusStrip.SuspendLayout();
+ this.SuspendLayout();
+
+ // themeForm
+ this.themeForm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50)))));
+ this.themeForm.Controls.Add(this.controlBox1);
+ this.themeForm.Controls.Add(this.pnlMain);
+ this.themeForm.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.themeForm.Font = new System.Drawing.Font("Segoe UI", 9F);
+ this.themeForm.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(142)))), ((int)(((byte)(142)))), ((int)(((byte)(142)))));
+ this.themeForm.Location = new System.Drawing.Point(0, 0);
+ this.themeForm.Name = "themeForm";
+ this.themeForm.Padding = new System.Windows.Forms.Padding(10, 70, 10, 9);
+ this.themeForm.Size = new System.Drawing.Size(820, 600);
+ this.themeForm.Text = "璇荤爜鍣ㄩ厤缃�";
+
+ // controlBox1
+ this.controlBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+ this.controlBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50)))));
+ this.controlBox1.Location = new System.Drawing.Point(740, 15);
+ this.controlBox1.Name = "controlBox1";
+ this.controlBox1.Size = new System.Drawing.Size(77, 19);
+
+ // pnlMain
+ this.pnlMain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50)))));
+ this.pnlMain.Controls.Add(this.pnlImage);
+ this.pnlMain.Controls.Add(this.grpResult);
+ this.pnlMain.Controls.Add(this.grpParams);
+ this.pnlMain.Controls.Add(this.grpControl);
+ this.pnlMain.Controls.Add(this.statusStrip);
+ this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.pnlMain.Location = new System.Drawing.Point(10, 70);
+ this.pnlMain.Name = "pnlMain";
+ this.pnlMain.Size = new System.Drawing.Size(800, 521);
+
+ // grpControl
+ this.grpControl.Controls.Add(this.btnRefresh);
+ this.grpControl.Controls.Add(this.btnSoftTrigger);
+ this.grpControl.Controls.Add(this.btnStop);
+ this.grpControl.Controls.Add(this.btnStart);
+ this.grpControl.Controls.Add(this.btnClose);
+ this.grpControl.Controls.Add(this.btnOpen);
+ this.grpControl.Controls.Add(this.cmbSN);
+ this.grpControl.Controls.Add(this.lblSN);
+ this.grpControl.Controls.Add(this.cmbBrand);
+ this.grpControl.Controls.Add(this.lblBrand);
+ this.grpControl.ForeColor = System.Drawing.Color.White;
+ this.grpControl.Location = new System.Drawing.Point(15, 15);
+ this.grpControl.Name = "grpControl";
+ this.grpControl.Size = new System.Drawing.Size(260, 240);
+ this.grpControl.Text = "璁惧鎺у埗";
+
+ this.lblBrand.Location = new System.Drawing.Point(10, 25);
+ this.lblBrand.Text = "鍝佺墝:";
+ this.cmbBrand.Location = new System.Drawing.Point(70, 22);
+ this.cmbBrand.Size = new System.Drawing.Size(170, 25);
+ this.cmbBrand.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+
+ this.lblSN.Location = new System.Drawing.Point(10, 60);
+ this.lblSN.Text = "搴忓垪鍙�:";
+ this.cmbSN.Location = new System.Drawing.Point(70, 57);
+ this.cmbSN.Size = new System.Drawing.Size(130, 25);
+
+ this.btnRefresh.Location = new System.Drawing.Point(205, 56);
+ this.btnRefresh.Size = new System.Drawing.Size(35, 25);
+ this.btnRefresh.Text = "R";
+ this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
+
+ this.btnOpen.Location = new System.Drawing.Point(13, 100);
+ this.btnOpen.Size = new System.Drawing.Size(110, 35);
+ this.btnOpen.Text = "鎵撳紑璁惧";
+ this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
+
+ this.btnClose.Location = new System.Drawing.Point(130, 100);
+ this.btnClose.Size = new System.Drawing.Size(110, 35);
+ this.btnClose.Text = "鍏抽棴璁惧";
+ this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
+
+ this.btnStart.Location = new System.Drawing.Point(13, 145);
+ this.btnStart.Size = new System.Drawing.Size(110, 35);
+ this.btnStart.Text = "寮�濮嬮噰闆�";
+ this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
+
+ this.btnStop.Location = new System.Drawing.Point(130, 145);
+ this.btnStop.Size = new System.Drawing.Size(110, 35);
+ this.btnStop.Text = "鍋滄閲囬泦";
+ this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
+
+ this.btnSoftTrigger.Location = new System.Drawing.Point(13, 190);
+ this.btnSoftTrigger.Size = new System.Drawing.Size(227, 35);
+ this.btnSoftTrigger.Text = "杞Е鍙戜竴娆�";
+ this.btnSoftTrigger.Click += new System.EventHandler(this.btnSoftTrigger_Click);
+
+ // grpParams
+ this.grpParams.Controls.Add(this.txtTimeout);
+ this.grpParams.Controls.Add(this.lblTimeout);
+ this.grpParams.Controls.Add(this.radHardTrigger);
+ this.grpParams.Controls.Add(this.radSoftTrigger);
+ this.grpParams.ForeColor = System.Drawing.Color.White;
+ this.grpParams.Location = new System.Drawing.Point(15, 260);
+ this.grpParams.Name = "grpParams";
+ this.grpParams.Size = new System.Drawing.Size(260, 110);
+ this.grpParams.Text = "鍙傛暟璁剧疆";
+
+ this.radSoftTrigger.Location = new System.Drawing.Point(15, 25);
+ this.radSoftTrigger.Text = "杞Е鍙�";
+ this.radSoftTrigger.Checked = true;
+ this.radSoftTrigger.CheckedChanged += new System.EventHandler(this.radTrigger_CheckedChanged);
+
+ this.radHardTrigger.Location = new System.Drawing.Point(130, 25);
+ this.radHardTrigger.Text = "鑷姩/纭Е鍙�";
+
+ this.lblTimeout.Location = new System.Drawing.Point(15, 65);
+ this.lblTimeout.Text = "瓒呮椂(ms):";
+ this.txtTimeout.Location = new System.Drawing.Point(100, 62);
+ this.txtTimeout.Size = new System.Drawing.Size(140, 25);
+ this.txtTimeout.Text = "2000";
+
+ // grpResult
+ this.grpResult.Controls.Add(this.lstBarcodes);
+ this.grpResult.ForeColor = System.Drawing.Color.White;
+ this.grpResult.Location = new System.Drawing.Point(15, 380);
+ this.grpResult.Name = "grpResult";
+ this.grpResult.Size = new System.Drawing.Size(260, 115);
+ this.grpResult.Text = "璇诲彇缁撴灉";
+
+ this.lstBarcodes.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(42)))), ((int)(((byte)(51)))), ((int)(((byte)(60)))));
+ this.lstBarcodes.ForeColor = System.Drawing.Color.White;
+ this.lstBarcodes.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.lstBarcodes.Location = new System.Drawing.Point(3, 19);
+ this.lstBarcodes.Name = "lstBarcodes";
+ this.lstBarcodes.Size = new System.Drawing.Size(254, 93);
+
+ // pnlImage
+ this.pnlImage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.pnlImage.Controls.Add(this.picPreview);
+ this.pnlImage.Location = new System.Drawing.Point(285, 23);
+ this.pnlImage.Name = "pnlImage";
+ this.pnlImage.Size = new System.Drawing.Size(500, 472);
+
+ this.picPreview.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.picPreview.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+
+ // statusStrip
+ this.statusStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(41)))), ((int)(((byte)(50)))));
+ this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.lblStatus });
+ this.statusStrip.Location = new System.Drawing.Point(0, 499);
+ this.statusStrip.Size = new System.Drawing.Size(800, 22);
+
+ this.lblStatus.ForeColor = System.Drawing.Color.White;
+ this.lblStatus.Text = "鍑嗗灏辩华";
+
+ // BarcodeReaderForm
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(820, 600);
+ this.Controls.Add(this.themeForm);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.Name = "BarcodeReaderForm";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+ this.Text = "璇荤爜鍣ㄩ厤缃�";
+ this.Load += new System.EventHandler(this.BarcodeReaderForm_Load);
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.BarcodeReaderForm_FormClosing);
+
+ this.themeForm.ResumeLayout(false);
+ this.pnlMain.ResumeLayout(false);
+ this.pnlMain.PerformLayout();
+ this.grpControl.ResumeLayout(false);
+ this.grpParams.ResumeLayout(false);
+ this.grpParams.PerformLayout();
+ this.grpResult.ResumeLayout(false);
+ this.pnlImage.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.picPreview)).EndInit();
+ this.statusStrip.ResumeLayout(false);
+ this.statusStrip.PerformLayout();
+ this.ResumeLayout(false);
+ }
+
+ private ReaLTaiizor.Forms.ThemeForm themeForm;
+ private ReaLTaiizor.Controls.Panel pnlMain;
+ private ReaLTaiizor.Controls.ControlBox controlBox1;
+ private System.Windows.Forms.GroupBox grpControl;
+ private System.Windows.Forms.Label lblBrand;
+ private System.Windows.Forms.ComboBox cmbBrand;
+ private System.Windows.Forms.Label lblSN;
+ private System.Windows.Forms.ComboBox cmbSN;
+ private System.Windows.Forms.Button btnRefresh;
+ private System.Windows.Forms.Button btnOpen;
+ private System.Windows.Forms.Button btnClose;
+ private System.Windows.Forms.Button btnStart;
+ private System.Windows.Forms.Button btnStop;
+ private System.Windows.Forms.Button btnSoftTrigger;
+ private System.Windows.Forms.GroupBox grpParams;
+ private System.Windows.Forms.RadioButton radHardTrigger;
+ private System.Windows.Forms.RadioButton radSoftTrigger;
+ private System.Windows.Forms.Label lblTimeout;
+ private System.Windows.Forms.TextBox txtTimeout;
+ private System.Windows.Forms.GroupBox grpResult;
+ private System.Windows.Forms.ListBox lstBarcodes;
+ private System.Windows.Forms.StatusStrip statusStrip;
+ private System.Windows.Forms.ToolStripStatusLabel lblStatus;
+ private System.Windows.Forms.Panel pnlImage;
+ private System.Windows.Forms.PictureBox picPreview;
+ }
+}
--
Gitblit v1.9.3