Пример #1
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     FormEmployeeEdite employeeEdite = new FormEmployeeEdite();
     employeeEdite.ShowDialog();
 }
Пример #2
0
 private void grdMain_DoubleClick(object sender, EventArgs e)
 {
     if (this.Owner is FormStatistics)
     {
         GlobalVal.StatisticsEmployeeID = grdMain.CurrentRow.Cells["EmployeeID"].Value.ToString();
         this.DialogResult = DialogResult.OK;
         this.Hide();
     }
     else
     {
         FormEmployeeEdite employeeEdite = new FormEmployeeEdite(grdMain.CurrentRow.Cells["EmployeeID"].Value.ToString());
         employeeEdite.ShowDialog();
     }
 }