コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }