예제 #1
0
        public AjoutPoints()
        {
            InitializeComponent();
            this.profils = AdoProfil.All();
            cbxListeJoueurs.ItemsSource = null;
            cbxListeJoueurs.ItemsSource = this.profils;


            this.actions = AdoAction.All();
            cbxListeActions.ItemsSource = null;
            cbxListeActions.ItemsSource = this.actions;
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (cbxJeune.IsChecked == true)
            {
                jeune = 1;
            }
            else if (cbxSenior.IsChecked == true)
            {
                jeune = 0;
            }
            else
            {
                Console.WriteLine("Veuillez choisir une case");
            }

            Action a = new Action(0, tbxNomAction.Text, Convert.ToInt32(tbxBareme.Text), jeune);

            AdoAction.createAction(a);
        }
예제 #3
0
 public VoirAction()
 {
     InitializeComponent();
     dgVoirAction.ItemsSource = AdoAction.All();
 }