FrmSelDelQuery.cs.svn-base 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace Core.LgMes.Client.LgJobMgt
  7. {
  8. /// <summary>
  9. /// FrmSelDel 的摘要说明。
  10. /// </summary>
  11. public class FrmSelDelQuery : System.Windows.Forms.Form
  12. {
  13. private System.Windows.Forms.Button button1;
  14. private System.Windows.Forms.Button button2;
  15. private System.Windows.Forms.Button button3;
  16. private System.Windows.Forms.Label label1;
  17. private System.Windows.Forms.ToolTip toolTip1;
  18. private System.ComponentModel.IContainer components;
  19. public FrmSelDelQuery()
  20. {
  21. //
  22. // Windows 窗体设计器支持所必需的
  23. //
  24. InitializeComponent();
  25. //
  26. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  27. //
  28. }
  29. /// <summary>
  30. /// 清理所有正在使用的资源。
  31. /// </summary>
  32. protected override void Dispose( bool disposing )
  33. {
  34. if( disposing )
  35. {
  36. if(components != null)
  37. {
  38. components.Dispose();
  39. }
  40. }
  41. base.Dispose( disposing );
  42. }
  43. #region Windows 窗体设计器生成的代码
  44. /// <summary>
  45. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  46. /// 此方法的内容。
  47. /// </summary>
  48. private void InitializeComponent()
  49. {
  50. this.components = new System.ComponentModel.Container();
  51. this.button1 = new System.Windows.Forms.Button();
  52. this.button2 = new System.Windows.Forms.Button();
  53. this.button3 = new System.Windows.Forms.Button();
  54. this.label1 = new System.Windows.Forms.Label();
  55. this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
  56. this.SuspendLayout();
  57. //
  58. // button1
  59. //
  60. this.button1.Location = new System.Drawing.Point(8, 40);
  61. this.button1.Name = "button1";
  62. this.button1.Size = new System.Drawing.Size(96, 23);
  63. this.button1.TabIndex = 0;
  64. this.button1.Text = "删除所选行";
  65. this.toolTip1.SetToolTip(this.button1, "删除当前选择的行");
  66. this.button1.Click += new System.EventHandler(this.button1_Click);
  67. //
  68. // button2
  69. //
  70. this.button2.Location = new System.Drawing.Point(112, 40);
  71. this.button2.Name = "button2";
  72. this.button2.Size = new System.Drawing.Size(96, 23);
  73. this.button2.TabIndex = 1;
  74. this.button2.Text = "删除所选炉号";
  75. this.toolTip1.SetToolTip(this.button2, "删除该炉号的所有数据");
  76. this.button2.Click += new System.EventHandler(this.button2_Click);
  77. //
  78. // button3
  79. //
  80. this.button3.Location = new System.Drawing.Point(216, 40);
  81. this.button3.Name = "button3";
  82. this.button3.Size = new System.Drawing.Size(96, 23);
  83. this.button3.TabIndex = 2;
  84. this.button3.Text = "取消";
  85. this.toolTip1.SetToolTip(this.button3, "取消");
  86. this.button3.Click += new System.EventHandler(this.button3_Click);
  87. //
  88. // label1
  89. //
  90. this.label1.Location = new System.Drawing.Point(16, 8);
  91. this.label1.Name = "label1";
  92. this.label1.Size = new System.Drawing.Size(100, 23);
  93. this.label1.TabIndex = 3;
  94. this.label1.Text = "选择删除方式:";
  95. this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
  96. //
  97. // FrmSelDel
  98. //
  99. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  100. this.BackColor = System.Drawing.Color.Gainsboro;
  101. this.ClientSize = new System.Drawing.Size(322, 79);
  102. this.Controls.Add(this.label1);
  103. this.Controls.Add(this.button3);
  104. this.Controls.Add(this.button2);
  105. this.Controls.Add(this.button1);
  106. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  107. this.MaximizeBox = false;
  108. this.MinimizeBox = false;
  109. this.Name = "FrmSelDel";
  110. this.ShowInTaskbar = false;
  111. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  112. this.Text = "删除";
  113. this.ResumeLayout(false);
  114. }
  115. #endregion
  116. public string _Flag = "C";
  117. private void button1_Click(object sender, System.EventArgs e)
  118. {
  119. _Flag = "A";
  120. this.Close();
  121. }
  122. private void button2_Click(object sender, System.EventArgs e)
  123. {
  124. _Flag = "B";
  125. this.Close();
  126. }
  127. private void button3_Click(object sender, System.EventArgs e)
  128. {
  129. _Flag = "C";
  130. this.Close();
  131. }
  132. }
  133. }