private void btnNew_Click(object sender, RoutedEventArgs e) { try { if (SessionUser.CréationAdministrateur == true) { CLSession = new AjouterSession(null, proxy, this); SessionOpened = true; CLSession.Show(); } else { MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.Opérationéchouée, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } } 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.Membership SelectMedecin = MedecinsDataGrid.SelectedItem as SVC.Membership; CLSession = new AjouterSession(SelectMedecin, proxy, this); SessionOpened = true; CLSession.Show(); } else { MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.Opérationéchouée, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } } catch (Exception ex) { MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } }