Beispiel #1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     group.GroupName = txtGroupName.Text;
     try
     {
         groupBll.UpdateByGroup(group);
         MessageBox.Show("修改成功");
         DataGridView dgv = (DataGridView)(form.Controls["panel1"].Controls["groupBox5"].Controls["dgvGroupList"]);
         dgv.DataSource = groupBll.FindAllInfo();
         this.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show("修改分组名称错误:" + ex.Message);
     }
 }