using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; namespace Core.LgMes.Client.LgJobMgt { /// /// FrmSelDel 的摘要说明。 /// public class FrmSelDelQuery : System.Windows.Forms.Form { private System.Windows.Forms.Button button1; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.Label label1; private System.Windows.Forms.ToolTip toolTip1; private System.ComponentModel.IContainer components; public FrmSelDelQuery() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // } /// /// 清理所有正在使用的资源。 /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows 窗体设计器生成的代码 /// /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(8, 40); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(96, 23); this.button1.TabIndex = 0; this.button1.Text = "删除所选行"; this.toolTip1.SetToolTip(this.button1, "删除当前选择的行"); this.button1.Click += new System.EventHandler(this.button1_Click); // // button2 // this.button2.Location = new System.Drawing.Point(112, 40); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(96, 23); this.button2.TabIndex = 1; this.button2.Text = "删除所选炉号"; this.toolTip1.SetToolTip(this.button2, "删除该炉号的所有数据"); this.button2.Click += new System.EventHandler(this.button2_Click); // // button3 // this.button3.Location = new System.Drawing.Point(216, 40); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(96, 23); this.button3.TabIndex = 2; this.button3.Text = "取消"; this.toolTip1.SetToolTip(this.button3, "取消"); this.button3.Click += new System.EventHandler(this.button3_Click); // // label1 // this.label1.Location = new System.Drawing.Point(16, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(100, 23); this.label1.TabIndex = 3; this.label1.Text = "选择删除方式:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // FrmSelDel // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.BackColor = System.Drawing.Color.Gainsboro; this.ClientSize = new System.Drawing.Size(322, 79); this.Controls.Add(this.label1); this.Controls.Add(this.button3); this.Controls.Add(this.button2); this.Controls.Add(this.button1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FrmSelDel"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "删除"; this.ResumeLayout(false); } #endregion public string _Flag = "C"; private void button1_Click(object sender, System.EventArgs e) { _Flag = "A"; this.Close(); } private void button2_Click(object sender, System.EventArgs e) { _Flag = "B"; this.Close(); } private void button3_Click(object sender, System.EventArgs e) { _Flag = "C"; this.Close(); } } }