| | |
| | | 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(154, 69); |
| | | button2.Margin = new Padding(3, 2, 3, 2); |
| | | button2.Name = "button2"; |
| | | button2.Size = new Size(108, 60); |
| | | button2.Size = new Size(93, 46); |
| | | button2.TabIndex = 1; |
| | | button2.Text = "预览"; |
| | | button2.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | // button1 |
| | | // |
| | | button1.Location = new Point(32, 90); |
| | | button1.Location = new Point(27, 69); |
| | | button1.Margin = new Padding(3, 2, 3, 2); |
| | | button1.Name = "button1"; |
| | | button1.Size = new Size(108, 60); |
| | | button1.Size = new Size(93, 46); |
| | | button1.TabIndex = 2; |
| | | button1.Text = "打印"; |
| | | button1.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | // textBox1 |
| | | // |
| | | textBox1.Location = new Point(113, 35); |
| | | textBox1.Location = new Point(96, 26); |
| | | textBox1.Margin = new Padding(3, 2, 3, 2); |
| | | textBox1.Name = "textBox1"; |
| | | textBox1.Size = new Size(175, 23); |
| | | textBox1.Size = new Size(151, 21); |
| | | textBox1.TabIndex = 3; |
| | | // |
| | | // label1 |
| | | // |
| | | label1.AutoSize = true; |
| | | label1.Location = new Point(52, 38); |
| | | label1.Location = new Point(27, 29); |
| | | label1.Name = "label1"; |
| | | label1.Size = new Size(56, 17); |
| | | label1.Size = new Size(55, 13); |
| | | label1.TabIndex = 4; |
| | | label1.Text = "打印内容"; |
| | | // |
| | | // button3 |
| | | // |
| | | button3.Location = new Point(27, 167); |
| | | button3.Margin = new Padding(2); |
| | | button3.Name = "button3"; |
| | | button3.Size = new Size(69, 33); |
| | | button3.TabIndex = 5; |
| | | button3.Text = "获取状态"; |
| | | button3.UseVisualStyleBackColor = true; |
| | | button3.Click += button3_Click; |
| | | // |
| | | // textBox2 |
| | | // |
| | | textBox2.Location = new Point(27, 221); |
| | | textBox2.Margin = new Padding(3, 2, 3, 2); |
| | | textBox2.Name = "textBox2"; |
| | | textBox2.Size = new Size(269, 21); |
| | | textBox2.TabIndex = 6; |
| | | // |
| | | // UIPrinter |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 17F); |
| | | AutoScaleDimensions = new SizeF(6F, 13F); |
| | | 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(2, 2, 2, 2); |
| | | Name = "UIPrinter"; |
| | | Size = new Size(356, 362); |
| | | Size = new Size(305, 277); |
| | | ResumeLayout(false); |
| | | PerformLayout(); |
| | | } |
| | |
| | | private Button button1; |
| | | private TextBox textBox1; |
| | | private Label label1; |
| | | private Button button3; |
| | | private TextBox textBox2; |
| | | } |
| | | } |