private void btnNew_Click(object sender, RoutedEventArgs e) { try { if (proxy != null) { if (proxy.State == CommunicationState.Faulted) { HandleProxy(); } else { if (sessionuser.CréationAdministrateur == true) { AjouterMedecin CLMedecin = new AjouterMedecin(null, proxy, sessionuser, callback); CLMedecin.Show(); } } } } catch (Exception ex) { MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } }
private void ClientsDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { try { if (MedecinsDataGrid.SelectedItem != null && sessionuser.ModificationAdministrateur == true) { SVC.Medecin SelectMedecin = MedecinsDataGrid.SelectedItem as SVC.Medecin; AjouterMedecin CLMedecin = new AjouterMedecin(SelectMedecin, proxy, sessionuser, callback); CLMedecin.Show(); } } catch (Exception ex) { MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } }