コード例 #1
0
 private void btnPatient_Click(object sender, RoutedEventArgs e)
 {
     try {
         if (membership.CréationAchat == true)
         {
             AjouterDci cl = new AjouterDci(proxy, null, membership);
             cl.Show();
         }
         else
         {
             MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.MessageBoxPrivilége, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop);
         }
     }
     catch (Exception ex)
     {
         MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop);
     }
 }
コード例 #2
0
        private void FamilleAlimentDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            try {
                if (memberuser.CréationAchat == true)
                {
                    SVC.Dci SelectMedecin = FamilleAlimentDataGrid.SelectedItem as SVC.Dci;

                    AjouterDci CLSession = new AjouterDci(proxy, SelectMedecin, memberuser);
                    CLSession.Show();
                }
                else
                {
                    MessageBoxResult resul03 = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.MessageBoxPrivilége, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Error);
                }
            }
            catch (Exception ex)
            {
                MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop);
            }
        }