LabelUsedDialog.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace PaintDotNet.Annotation
  11. {
  12. /// <summary>
  13. /// 工字线输入长度窗口
  14. /// </summary>
  15. public partial class LabelUsedDialog : Form
  16. {
  17. private System.Windows.Forms.Label label1;
  18. public TextBox textBox1;
  19. public Button button1;
  20. public Button button2;
  21. public LabelUsedDialog()
  22. {
  23. InitializeComponent();
  24. this.ControlBox = false;
  25. }
  26. private void InitializeLanguageText()
  27. {
  28. this.button2.Text = PdnResources.GetString("CloseWorkspaceAction.CancelButton.ActionText");
  29. this.button1.Text = PdnResources.GetString("Form.OkButton.Text");
  30. this.label1.Text = PdnResources.GetString("Menu.pleaseintonum.text")+":";
  31. }
  32. private void InitializeComponent()
  33. {
  34. this.label1 = new System.Windows.Forms.Label();
  35. this.textBox1 = new System.Windows.Forms.TextBox();
  36. this.button1 = new System.Windows.Forms.Button();
  37. this.button2 = new System.Windows.Forms.Button();
  38. this.SuspendLayout();
  39. //
  40. // label1
  41. //
  42. this.label1.AutoSize = true;
  43. this.label1.Location = new System.Drawing.Point(12, 48);
  44. this.label1.Name = "label1";
  45. this.label1.Size = new System.Drawing.Size(77, 12);
  46. this.label1.TabIndex = 0;
  47. this.label1.Text = "请输入数值:";
  48. //
  49. // textBox1
  50. //
  51. this.textBox1.Location = new System.Drawing.Point(83, 45);
  52. this.textBox1.Name = "textBox1";
  53. this.textBox1.Size = new System.Drawing.Size(133, 21);
  54. this.textBox1.TabIndex = 1;
  55. //
  56. // button1
  57. //
  58. this.button1.Location = new System.Drawing.Point(233, 21);
  59. this.button1.Name = "button1";
  60. this.button1.Size = new System.Drawing.Size(75, 23);
  61. this.button1.TabIndex = 2;
  62. this.button1.Text = "确定";
  63. this.button1.UseVisualStyleBackColor = true;
  64. //
  65. // button2
  66. //
  67. this.button2.Location = new System.Drawing.Point(233, 63);
  68. this.button2.Name = "button2";
  69. this.button2.Size = new System.Drawing.Size(75, 23);
  70. this.button2.TabIndex = 3;
  71. this.button2.Text = "取消";
  72. this.button2.UseVisualStyleBackColor = true;
  73. this.button2.Click += new System.EventHandler(this.button2_Click);
  74. //
  75. // LabelUsedDialog
  76. //
  77. this.ClientSize = new System.Drawing.Size(326, 106);
  78. this.Controls.Add(this.button2);
  79. this.Controls.Add(this.button1);
  80. this.Controls.Add(this.textBox1);
  81. this.Controls.Add(this.label1);
  82. this.MaximizeBox = false;
  83. this.MinimizeBox = false;
  84. this.Name = "LabelUsedDialog";
  85. this.ResumeLayout(false);
  86. this.PerformLayout();
  87. }
  88. private void button2_Click(object sender, EventArgs e)
  89. {
  90. this.Close();
  91. }
  92. }
  93. }