private void btnEdit_Click(object sender, EventArgs e) { int cr = classInfoDGV.CurrentRow.Index; if (cr <= -1) { return; } changeBtnEnable(false); classInfoDGV.Visible = false; classInfoGroup.Text = "修改班级"; Classes currentClass = new Classes(dt.Rows[cr][1].ToString(), dt.Rows[cr][2].ToString(), dt.Rows[cr][3].ToString(), dt.Rows[cr][4].ToString(), dt.Rows[cr][5].ToString()); clsEdit = new ClassEdit(currentClass); clsEdit.Disposed += new EventHandler(clsOperation_Disposed); classInfoGroup.Controls.Add(clsEdit); clsEdit.Dock = DockStyle.Fill; }
public ClassManage() { InitializeComponent(); clsEdit = null; }