コード例 #1
0
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (memberuser.ModificationAdministrateur == true)
         {
             AjouterDictionnaire cl = new AjouterDictionnaire(proxy, callback, null, memberuser);
             cl.Show();
         }
         else
         {
             MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.MessageBoxPrivilége, 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);
     }
 }
コード例 #2
0
 private void ClientsDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     try
     {
         if (memberuser.ModificationAdministrateur == true && MotifDataGrid.SelectedItem != null)
         {
             SVC.Dictionnaire    selecteddi = MotifDataGrid.SelectedItem as SVC.Dictionnaire;
             AjouterDictionnaire cl         = new AjouterDictionnaire(proxy, callback, selecteddi, memberuser);
             cl.Show();
         }
         else
         {
             MessageBoxResult resultc10 = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.MessageBoxPrivilége, 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);
     }
 }