From 64f56d3972b747a5484e1d2aaf1215a356073ea0 Mon Sep 17 00:00:00 2001 From: peizhiyong <zhiyong.pei@broconcentric.com> Date: 星期二, 01 四月 2025 10:04:41 +0800 Subject: [PATCH] 1.增加获取打印机状态的示例 --- src/Bro.M141.Process/UI/UIPrinter.Designer.cs | 50 +++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 39 insertions(+), 11 deletions(-) diff --git a/src/Bro.M141.Process/UI/UIPrinter.Designer.cs b/src/Bro.M141.Process/UI/UIPrinter.Designer.cs index 1c3b081..42ce610 100644 --- a/src/Bro.M141.Process/UI/UIPrinter.Designer.cs +++ b/src/Bro.M141.Process/UI/UIPrinter.Designer.cs @@ -32,13 +32,16 @@ button1 = new Button(); textBox1 = new TextBox(); label1 = new Label(); + button3 = new Button(); + textBox2 = new TextBox(); SuspendLayout(); // // button2 // - button2.Location = new Point(180, 90); + button2.Location = new Point(283, 127); + button2.Margin = new Padding(5, 4, 5, 4); button2.Name = "button2"; - button2.Size = new Size(108, 60); + button2.Size = new Size(170, 85); button2.TabIndex = 1; button2.Text = "棰勮"; button2.UseVisualStyleBackColor = true; @@ -46,9 +49,10 @@ // // button1 // - button1.Location = new Point(32, 90); + button1.Location = new Point(50, 127); + button1.Margin = new Padding(5, 4, 5, 4); button1.Name = "button1"; - button1.Size = new Size(108, 60); + button1.Size = new Size(170, 85); button1.TabIndex = 2; button1.Text = "鎵撳嵃"; button1.UseVisualStyleBackColor = true; @@ -56,31 +60,53 @@ // // textBox1 // - textBox1.Location = new Point(113, 35); + textBox1.Location = new Point(178, 49); + textBox1.Margin = new Padding(5, 4, 5, 4); textBox1.Name = "textBox1"; - textBox1.Size = new Size(175, 23); + textBox1.Size = new Size(273, 30); textBox1.TabIndex = 3; // // label1 // label1.AutoSize = true; - label1.Location = new Point(52, 38); + label1.Location = new Point(82, 54); + label1.Margin = new Padding(5, 0, 5, 0); label1.Name = "label1"; - label1.Size = new Size(56, 17); + label1.Size = new Size(82, 24); label1.TabIndex = 4; label1.Text = "鎵撳嵃鍐呭"; // + // button3 + // + button3.Location = new Point(50, 308); + button3.Name = "button3"; + button3.Size = new Size(127, 61); + button3.TabIndex = 5; + button3.Text = "鑾峰彇鐘舵��"; + button3.UseVisualStyleBackColor = true; + button3.Click += button3_Click; + // + // textBox2 + // + textBox2.Location = new Point(50, 376); + textBox2.Margin = new Padding(5, 4, 5, 4); + textBox2.Name = "textBox2"; + textBox2.Size = new Size(490, 30); + textBox2.TabIndex = 6; + // // UIPrinter // - AutoScaleDimensions = new SizeF(7F, 17F); + AutoScaleDimensions = new SizeF(11F, 24F); AutoScaleMode = AutoScaleMode.Font; + Controls.Add(textBox2); + Controls.Add(button3); Controls.Add(label1); Controls.Add(textBox1); Controls.Add(button1); Controls.Add(button2); - Margin = new Padding(2, 3, 2, 3); + Margin = new Padding(3, 4, 3, 4); Name = "UIPrinter"; - Size = new Size(356, 362); + Size = new Size(559, 511); ResumeLayout(false); PerformLayout(); } @@ -91,5 +117,7 @@ private Button button1; private TextBox textBox1; private Label label1; + private Button button3; + private TextBox textBox2; } } -- Gitblit v1.8.0