Ejemplo n.º 1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (studentInfoDGV.CurrentRow == null) return;
     int cr = studentInfoDGV.CurrentRow.Index;
     if (cr <= -1) { return; }
     changeBtnEnable(false);
     studentInfoDGV.Visible = false;
     studentInfoGroup.Text = "修改学生";
     Student st = new Student(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(), dt.Rows[cr][6].ToString());
     stuEdit = new StudentEdit(st);
     stuEdit.Disposed += new EventHandler(stuOperation_Disposed);
     studentInfoGroup.Controls.Add(stuEdit);
     stuEdit.Dock = DockStyle.Fill;
 }
Ejemplo n.º 2
-1
 public StudentManage()
 {
     InitializeComponent();
     stuAdd = null;
     stuEdit = null;
     stuFind = null;
 }