private void buttonItem1_Click(object sender, EventArgs e) { FrOperatorEdit a = new FrOperatorEdit(); a.code = "Add"; a.ShowDialog(); if (a.DialogResult == DialogResult.OK) { Reload(); } }
private void toolAmend_Click(object sender, EventArgs e) { FrOperatorEdit a = new FrOperatorEdit(); a.code = "Edit"; a.yonghu = dataGridViewX2.CurrentRow.Cells["用户名"].Value.ToString(); a.ShowDialog(); if (a.DialogResult == DialogResult.OK) { Reload(); } }