/// <summary>
 /// DataGridView单元格内容点击事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvExp_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0) return;
     if (e.ColumnIndex == dgvExp.Columns["Edit"].Index)
     {
         // 编辑
         experience = GetExperienceFromDgv(e.RowIndex);
         SetInfo();
     }
     else if (e.ColumnIndex == dgvExp.Columns["Delete"].Index)
     {
         // 删除
         try
         {
             Experience experience = GetExperienceFromDgv(e.RowIndex);
             if (MessageBox.Show("确定要删除" + experience.ExpCompanyName + "吗?", "ResumeFactory", MessageBoxButtons.YesNo) == DialogResult.Yes)
             {
                 workExpService.Delete(experience);
                 RefreshData();
             }
         }
         catch (Exception ex)
         {
             MessageBox.Show("删除失败:" + ex.Message);
         }
     }
 }
 /// <summary>
 /// 进入新增记录状态
 /// </summary>
 private void NewRecord()
 {
     experience = new Experience();
     experience.ResumeId = resume.Id;
     SetInfo();
 }