//学生成绩数据右键菜单相关操作 private void ToolStripMenuItem19_Click(object sender, EventArgs e) { FormDelete FormDelete = new FormDelete(); FormDelete.Delflag = 5; //将删除身份设置为成绩 FormDelete.id = skinDataGridViewSCMapping.SelectedRows[0].Cells[0].Value.ToString(); FormDelete.Show(); }
private void 除此数据ToolStripMenuItem_Click(object sender, EventArgs e) { FormDelete FormDelete = new FormDelete(); FormDelete.Delflag = 1; //将删除身份设置为学生 FormDelete.id = skinDataGridViewStudent.SelectedRows[0].Cells[0].Value.ToString(); FormDelete.Show(); }
//班级数据右键菜单相关操作 private void ToolStripMenuItem16_Click(object sender, EventArgs e) { FormDelete FormDelete = new FormDelete(); FormDelete.Delflag = 4; //将删除身份设置为班级 FormDelete.id = skinDataGridViewClassInfo.SelectedRows[0].Cells[0].Value.ToString(); FormDelete.Show(); }
private void 除成绩数据ToolStripMenuItem5_Click(object sender, EventArgs e) { //打开删除数据窗体 FormDelete FormFullDelete = new FormDelete(); FormFullDelete.Delflag = 5; FormFullDelete.Show(); }