123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace PaintDotNet.Annotation
- {
- /// <summary>
- /// 工字线输入长度窗口
- /// </summary>
- public partial class LabelUsedDialog : Form
- {
- private System.Windows.Forms.Label label1;
- public TextBox textBox1;
- public Button button1;
- public Button button2;
- public LabelUsedDialog()
- {
- InitializeComponent();
- this.ControlBox = false;
- }
- private void InitializeLanguageText()
- {
- this.button2.Text = PdnResources.GetString("CloseWorkspaceAction.CancelButton.ActionText");
- this.button1.Text = PdnResources.GetString("Form.OkButton.Text");
- this.label1.Text = PdnResources.GetString("Menu.pleaseintonum.text")+":";
- }
- private void InitializeComponent()
- {
- this.label1 = new System.Windows.Forms.Label();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.button1 = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(12, 48);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "请输入数值:";
- //
- // textBox1
- //
- this.textBox1.Location = new System.Drawing.Point(83, 45);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(133, 21);
- this.textBox1.TabIndex = 1;
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(233, 21);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
- this.button1.TabIndex = 2;
- this.button1.Text = "确定";
- this.button1.UseVisualStyleBackColor = true;
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(233, 63);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(75, 23);
- this.button2.TabIndex = 3;
- this.button2.Text = "取消";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // LabelUsedDialog
- //
- this.ClientSize = new System.Drawing.Size(326, 106);
- this.Controls.Add(this.button2);
- this.Controls.Add(this.button1);
- this.Controls.Add(this.textBox1);
- this.Controls.Add(this.label1);
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "LabelUsedDialog";
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|