private void PrendreRendezVous_Click(object sender, RoutedEventArgs e) { try { if (memberuser.CréationRendezVous == true && PatientDataGrid.SelectedItem != null) { SVC.Patient SelectPatient = PatientDataGrid.SelectedItem as SVC.Patient; SVC.RendezVou rendezvous = new SVC.RendezVou { Nom = SelectPatient.Nom, Prénom = SelectPatient.Prénom, CodePatient = SelectPatient.Id, Adresse = SelectPatient.Adresse, Téléphone = SelectPatient.Téléphone, Email = SelectPatient.Email, PrisPar = memberuser.UserName, }; PrendreRendezVous kl = new PrendreRendezVous(rendezvous, proxy, memberuser, callback, 4, SelectPatient); kl.Show(); } else { MessageBoxResult resul03 = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.Opérationéchouée, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } } catch (Exception ex) { MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop); } }
private void MenuItem_Click_1(object sender, RoutedEventArgs e) { try { if (MemBerShip.CréationRendezVous == true) { SVC.RendezVou SelectRendezVous = new RendezVou { PrisPar = MemBerShip.UserName, }; PrendreRendezVous CLMedecin = new PrendreRendezVous(SelectRendezVous, proxy, MemBerShip, callback, 3, null); CLMedecin.Show(); } } catch (Exception ex) { MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop); } }