private void ClearAddAppointment(object sender, DialogClosingEventArgs eventArgs)
 {
     AppointmentTimePicker.SelectedTime = null;
     PatientNameComboBox.SelectedItem   = null;
     DoctorNameComboBox.SelectedItem    = null;
     AppointmentDuration.Clear();
     AppointmentDatePicker.SelectedDate = DateTime.Today;
     validation.Text = "";
 }
예제 #2
0
 private void ResetComponentValues()
 {
     DoctorComboBox.SelectedIndex  = -1;
     DatePicker.SelectedDate       = null;
     AppointmentTime.SelectedIndex = -1;
     AppointmentDuration.Clear();
     AppointmentTypeComboBox.SelectedItem = null;
     RoomComboBox.SelectedIndex           = -1;
 }
 public void addSubmit(object sender, RoutedEventArgs e)
 {
     if (ViewModel.Validate())
     {
         ViewModel.addAppointment();
         AppointmentDuration.Clear();
         AppointmentTimePicker.SelectedTime = null;
         PatientNameComboBox.SelectedItem   = null;
         DoctorNameComboBox.SelectedItem    = null;
         AppointmentDatePicker.SelectedDate = DateTime.Today;
     }
 }