Esempio n. 1
0
 public void ExecuteDeleteEvent(object sender, CommandEventArgs e)
 {
     try
     {
         _IVacationFacade.DeleteVacation(Convert.ToInt32(e.CommandArgument));
     }
     catch (ApplicationException ex)
     {
         _IVacationBaseListView.Message = ex.Message;
     }
 }
Esempio n. 2
0
 public void DeleteEvent(object sender, CommandEventArgs e)
 {
     _IVacationFacade.DeleteVacation(Convert.ToInt32(e.CommandArgument));
     _ItsView.VacationList = _IVacationFacade.GetVacationByAccountID(_ItsView.Employee.Account.Id);
 }