private void 赛程添加ToolStripMenuItem_Click(object sender, EventArgs e) { DD frm = new DD(); frm.type = "添加"; frm.MdiParent = this; frm.Show(); }
private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { //跳转到修改页面,并且把类型赋值 string count = dgv.SelectedRows[0].Cells[2].Value.ToString(); DD frm = new DD(); frm.type = "修改"; frm.count = count; frm.Show(); }