private void btnNew_Click(object sender, RoutedEventArgs e) { try { if (memberuser.CréationAdministrateur == true) { AjouterActe cl = new AjouterActe(proxy, memberuser, callback, null); cl.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 (memberuser.CréationAdministrateur == true && MotifDataGrid.SelectedItem != null) { SVC.Acte selectedActe = MotifDataGrid.SelectedItem as SVC.Acte; AjouterActe cl = new AjouterActe(proxy, memberuser, callback, selectedActe); cl.Show(); } } catch (Exception ex) { MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error); } }