Пример #1
0
 private void EP1_Edit(object sender, EventArgs e)
 {
     try
     {
         if (LB.SelectedIndex != -1)
         {
             Employee_Absence em = new Employee_Absence(LB.SelectedValue, ((DataRowView)Absence_DG.SelectedItem)["emc_id"]);
             em.ShowDialog();
             Fill_DG_Absence();
         }
     }
     catch
     {
     }
 }
Пример #2
0
 private void EP1_Add(object sender, EventArgs e)
 {
     try
     {
         if (LB.SelectedIndex != -1)
         {
             Employee_Absence em = new Employee_Absence(LB.SelectedValue);
             em.ShowDialog();
             Fill_DG_Absence();
         }
     }
     catch
     {
     }
 }