private void AddDoctor_MenuClick(object sender, RoutedEventArgs e) { RegisterDoctorDialog registerDoctor = new RegisterDoctorDialog(this); if (registerDoctor.ShowDialog() == true) { ReloadAppointmentsList(); } }
private void EditDoctor_ContextMenuClick(object sender, RoutedEventArgs e) { Doctor docToUpdate = lvDoctorsList.SelectedItem as Doctor; if (docToUpdate == null) { return; } RegisterDoctorDialog docUpdateDialog = new RegisterDoctorDialog(this, docToUpdate); if (docUpdateDialog.ShowDialog() == true) { ReloadDoctorsList(); } }