예제 #1
0
 private void btn_ajoutFormation_Click(object sender, RoutedEventArgs e)
 {
     this.SwipeMessages();
     try
     {
         Formation formation = FormationDAO.CreerFormation(tb_nomFormation.Text, tb_dureeFormation.Text);
     }
     catch (Exception error)
     {
         this.tbk_error.Text       = "Erreur : " + error.Message + ".";
         this.tbk_error.Visibility = Visibility.Visible;
     }
     this.tbk_statut.Text       = "Formation Ajoutée.";
     this.tbk_statut.Visibility = Visibility.Visible;
 }
예제 #2
0
        private void mi_ajout_promotion_Click(object sender, RoutedEventArgs e)
        {
            AjoutPromotion ajoutPromotion = new AjoutPromotion(FormationDAO.GetAll());

            this.Ajout.Content = ajoutPromotion;
        }
예제 #3
0
        private void mi_ajout_matiere_Click(object sender, RoutedEventArgs e)
        {
            AjoutMatiere ajoutMatiere = new AjoutMatiere(FormationDAO.GetAll());

            this.Ajout.Content = ajoutMatiere;
        }