using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using CoreFS.CA06;
using Core.Mes.Client.Common;
namespace Core.LgMes.Client.LgJobMgt
{
///
/// FrmSelDel 的摘要说明。
///
public class FrmSelDel : frmStyleBase //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 Infragistics.Win.Misc.UltraGroupBox ultraGroupBox1;
private System.ComponentModel.IContainer components;
public FrmSelDel(OpeBase oba)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
ob = oba;
//
// 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.ultraGroupBox1 = new Infragistics.Win.Misc.UltraGroupBox();
((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).BeginInit();
this.ultraGroupBox1.SuspendLayout();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(9, 42);
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(113, 42);
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(217, 42);
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(17, 10);
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;
//
// ultraGroupBox1
//
this.ultraGroupBox1.Controls.Add(this.label1);
this.ultraGroupBox1.Controls.Add(this.button1);
this.ultraGroupBox1.Controls.Add(this.button3);
this.ultraGroupBox1.Controls.Add(this.button2);
this.ultraGroupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ultraGroupBox1.Location = new System.Drawing.Point(0, 0);
this.ultraGroupBox1.Name = "ultraGroupBox1";
this.ultraGroupBox1.Size = new System.Drawing.Size(325, 76);
this.ultraGroupBox1.TabIndex = 4;
//
// FrmSelDel
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.BackColor = System.Drawing.Color.Gainsboro;
this.ClientSize = new System.Drawing.Size(325, 76);
this.Controls.Add(this.ultraGroupBox1);
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 = "删除";
((System.ComponentModel.ISupportInitialize)(this.ultraGroupBox1)).EndInit();
this.ultraGroupBox1.ResumeLayout(false);
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();
}
}
}