Beispiel #1
0
 private void btnDeleteTimeSlot_Click(object sender, EventArgs e)
 {
     if (timeSlotService.deleteTimeSlot(selectedTimeSlot.Id))
     {
         SuccessMessage sm = new SuccessMessage("Time-slot Deleted Successfully");
         sm.Show();
         dataGridTimeSlots.Rows.Clear();
         populateData();
         clear();
     }
     else
     {
         ErrorMessage em = new ErrorMessage("There is somthing wrong whent deleting times-slot");
         em.Show();
     }
 }