private void ItemAdd_Click(object sender, EventArgs e) { frmPubMacParamAdd frm = new frmPubMacParamAdd("", this.Text, ItemAdd.Text); if (frm.ShowDialog() == DialogResult.OK) { frmPubMacParam_Load(null, null); } }
private void ItemEdit_Click(object sender, EventArgs e) { int index = dataGrid.CurrentRow.Index; //取得选中行的索引 string MacSN = dataGrid.Rows[index].Cells[1].Value.ToString(); frmPubMacParamAdd frm = new frmPubMacParamAdd(MacSN, this.Text, ItemEdit.Text); if (frm.ShowDialog() == DialogResult.OK) { frmPubMacParam_Load(null, null); } }
private void ItemMomAdd_Click(object sender, EventArgs e) { if (!InitAddList()) { return; } frmPubMacParamAdd frm = new frmPubMacParamAdd(AddList, this.Text, ItemAdd.Text); if (frm.ShowDialog() == DialogResult.OK) { frmPubMacParam_Load(null, null); } }