private void 添加ToolStripMenuItem_Click(object sender, EventArgs e) { edit e1 = new edit(this.FindForm()); this.Hide(); e1.ShowDialog(); this.load(); }
private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { if (iss()) { string[] a = new string[7]; for (int i = 0; i < 7; i++) { a[i] = dataGridView1.SelectedRows[0].Cells[i].Value.ToString(); } edit e1 = new edit(this.FindForm(), a); this.Hide(); e1.ShowDialog(); this.load(); } }