private void tsb_Editfrm_Click(object sender, EventArgs e) { if (dgv_STB.SelectedRows.Count > 0) { int intTypeId = Convert.ToInt32(dgv_STB.SelectedRows[0].Cells["流水线号"].Value); //实例化编辑页面 stbObject = new STBOp01(intTypeId); stbObject.Text = "STBOp Edit"; // 显示人员编辑画面 stbObject.ShowDialog(); // 重新初始化该画面 this.STBClient_Load(sender, e); } else { HDIC_Message.ShowWarnDialog(this, "请选择要编辑的信息"); } }
private void tsb_Newfrm_Click(object sender, EventArgs e) { stbObject = new STBOp01(); stbObject.Text = "STBOp Add"; stbObject.ShowDialog(); this.STBClient_Load(sender, e); }