From 9584628fa79f263385bb39d3c357e5c6dff225c5 Mon Sep 17 00:00:00 2001 From: lu <123456> Date: 星期三, 20 八月 2025 17:01:17 +0800 Subject: [PATCH] 电子称 --- DevApp/Gs.DevApp/XtraForm2.Designer.cs | 76 +++++++++++++++++++++++++++++++------ 1 files changed, 63 insertions(+), 13 deletions(-) diff --git a/DevApp/Gs.DevApp/XtraForm2.Designer.cs b/DevApp/Gs.DevApp/XtraForm2.Designer.cs index 7ab1c9d..8b2bf36 100644 --- a/DevApp/Gs.DevApp/XtraForm2.Designer.cs +++ b/DevApp/Gs.DevApp/XtraForm2.Designer.cs @@ -28,34 +28,84 @@ /// </summary> private void InitializeComponent() { - this.labelControl1 = new DevExpress.XtraEditors.LabelControl(); + this.cmbSerialPortNum = new DevExpress.XtraEditors.ImageComboBoxEdit(); + this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); + this.cmbBaudRate = new DevExpress.XtraEditors.ImageComboBoxEdit(); + this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); + this.simpleButton3 = new DevExpress.XtraEditors.SimpleButton(); + ((System.ComponentModel.ISupportInitialize)(this.cmbSerialPortNum.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.cmbBaudRate.Properties)).BeginInit(); this.SuspendLayout(); // - // labelControl1 + // cmbSerialPortNum // - this.labelControl1.Appearance.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelControl1.Appearance.Options.UseFont = true; - this.labelControl1.Location = new System.Drawing.Point(144, 46); - this.labelControl1.Name = "labelControl1"; - this.labelControl1.Size = new System.Drawing.Size(102, 18); - this.labelControl1.TabIndex = 0; - this.labelControl1.Text = "labelControl1"; + this.cmbSerialPortNum.Location = new System.Drawing.Point(32, 24); + this.cmbSerialPortNum.Name = "cmbSerialPortNum"; + this.cmbSerialPortNum.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.cmbSerialPortNum.Size = new System.Drawing.Size(125, 24); + this.cmbSerialPortNum.TabIndex = 0; + // + // simpleButton1 + // + this.simpleButton1.Location = new System.Drawing.Point(399, 13); + this.simpleButton1.Name = "simpleButton1"; + this.simpleButton1.Size = new System.Drawing.Size(94, 29); + this.simpleButton1.TabIndex = 1; + this.simpleButton1.Text = "鍏堟墦寮�"; + this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); + // + // cmbBaudRate + // + this.cmbBaudRate.Location = new System.Drawing.Point(32, 83); + this.cmbBaudRate.Name = "cmbBaudRate"; + this.cmbBaudRate.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { + new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)}); + this.cmbBaudRate.Size = new System.Drawing.Size(125, 24); + this.cmbBaudRate.TabIndex = 2; + // + // simpleButton2 + // + this.simpleButton2.Location = new System.Drawing.Point(399, 78); + this.simpleButton2.Name = "simpleButton2"; + this.simpleButton2.Size = new System.Drawing.Size(94, 29); + this.simpleButton2.TabIndex = 3; + this.simpleButton2.Text = "getWeight"; + this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click); + // + // simpleButton3 + // + this.simpleButton3.Location = new System.Drawing.Point(399, 153); + this.simpleButton3.Name = "simpleButton3"; + this.simpleButton3.Size = new System.Drawing.Size(94, 29); + this.simpleButton3.TabIndex = 4; + this.simpleButton3.Text = "simpleButton3"; + this.simpleButton3.Click += new System.EventHandler(this.simpleButton3_Click); // // XtraForm2 // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(613, 369); - this.Controls.Add(this.labelControl1); + this.Controls.Add(this.simpleButton3); + this.Controls.Add(this.simpleButton2); + this.Controls.Add(this.cmbBaudRate); + this.Controls.Add(this.simpleButton1); + this.Controls.Add(this.cmbSerialPortNum); this.Name = "XtraForm2"; - this.Text = "XtraForm2"; + this.Text = "娴嬭瘯绉伴噸"; + ((System.ComponentModel.ISupportInitialize)(this.cmbSerialPortNum.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.cmbBaudRate.Properties)).EndInit(); this.ResumeLayout(false); - this.PerformLayout(); } #endregion - private DevExpress.XtraEditors.LabelControl labelControl1; + private DevExpress.XtraEditors.ImageComboBoxEdit cmbSerialPortNum; + private DevExpress.XtraEditors.SimpleButton simpleButton1; + private DevExpress.XtraEditors.ImageComboBoxEdit cmbBaudRate; + private DevExpress.XtraEditors.SimpleButton simpleButton2; + private DevExpress.XtraEditors.SimpleButton simpleButton3; } } \ No newline at end of file -- Gitblit v1.9.3