Exemple #1
0
 private void HandleCmbox_DentistNameChange(object sender, SelectionChangedEventArgs e)
 {
     if (window.UsrCntrl_EditDentist.Cmbox_DentistName.SelectedItem is Dentist)
     {
         var dentist = window.UsrCntrl_EditDentist.Cmbox_DentistName.SelectedItem as Dentist;
         var thread  = new NewAppTimeSlotsThread(5000, dentist.GetID());
         thread.eventHandler += HandleGetDentistTimesEditDenUpdate;
         thread.Start();
     }
 }
Exemple #2
0
 private void HandleCmbox_DentistFilterChange(object sender, SelectionChangedEventArgs e)
 {
     if (window.UsrCntrl_NewApp.Cmbox_DentistFilter.SelectedItem is Dentist)
     {
         var dentist = window.UsrCntrl_NewApp.Cmbox_DentistFilter.SelectedItem as Dentist;
         var thread  = new NewAppTimeSlotsThread(5000, dentist.GetID());
         thread.eventHandler += HandleGetNewAppTimeSlotsComplete;
         thread.Start();
     }
     else if (window.UsrCntrl_NewApp.Cmbox_DentistFilter.SelectedItem is string)
     {
         var thread = new AllAvailableTimesThread(5000, 0);
         thread.eventHandler += HandleGetNewAppTimeSlotsComplete;
         thread.Start();
     }
 }