예제 #1
0
        private void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            try
            { if (memberuser.ModificationAdministrateur == true)
              {
                  SVC.Catalogue    SelectMedecin = MotifDataGrid.SelectedItem as SVC.Catalogue;
                  AjouterCatalogue CLSession     = new AjouterCatalogue(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);
            }
        }
예제 #2
0
        private void btnNew_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (memberuser.CréationAdministrateur == true)
                {
                    AjouterCatalogue CLSession = new AjouterCatalogue(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);
            }
        }