Beispiel #1
0
 private void MenuItem_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         SVC.Patient SelectMedecin = PatientDataGrid.SelectedItem as SVC.Patient;
         NewPatient  CLMedecin     = new NewPatient(proxy, memberuser, SelectMedecin);
         CLMedecin.Show();
     }
     catch (Exception ex)
     {
         MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop);
     }
 }
Beispiel #2
0
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     try {
         if (memberuser.CréationPatient == true)
         {
             NewPatient CLMedecin = new NewPatient(proxy, memberuser, null);
             CLMedecin.Show();
         }
         else
         {
             MessageBoxResult resultc1 = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.MessageBoxPrivilége, 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);
     }
 }
Beispiel #3
0
 private void ClientsDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try {
         if (memberuser.ModificationPatient == true && PatientDataGrid.SelectedItem != null)
         {
             SVC.Patient SelectMedecin = PatientDataGrid.SelectedItem as SVC.Patient;
             NewPatient  CLMedecin     = new NewPatient(proxy, memberuser, SelectMedecin);
             CLMedecin.Show();
         }
         else
         {
             MessageBoxResult resultc1 = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.MessageBoxPrivilége, 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);
     }
 }