Ejemplo n.º 1
0
 private void btnNew_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (memberuser.CréationAdministrateur == true)
         {
             AjouterMotifDepense CLSession = new AjouterMotifDepense(proxy, callback, null, memberuser);
             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);
     }
 }
Ejemplo n.º 2
0
        private void ClientsDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            try
            {
                if (memberuser.ModificationAdministrateur == true)
                {
                    SVC.MotifDepense    SelectMedecin = MotifDataGrid.SelectedItem as SVC.MotifDepense;
                    AjouterMotifDepense CLSession     = new AjouterMotifDepense(proxy, callback, SelectMedecin, memberuser);

                    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);
            }
        }