private void btnAdd_Click(object sender, EventArgs e)
 {
     frmDepartment fu = new frmDepartment(null, 0);
     fu.ShowDialog();
     if(fu.DialogResult==DialogResult.OK)
       LoadData();
 }
 private void btnModify_Click(object sender, EventArgs e)
 {
     if (dgvList.SelectedRows.Count > 0)
     {
         DB_Talk.Model.m_Departments Model = (DB_Talk.Model.m_Departments)dgvList.CurrentRow.Tag;
         if (Model != null)
         {
             frmDepartment fu = new frmDepartment(Model, 1);
             fu.ShowDialog();
             if(fu.DialogResult==DialogResult.OK)
                LoadData();
         }
     }
     else
     {
         CommControl.MessageBoxEx.MessageBoxEx.Show("请选择要编辑的部门", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
     }
 }