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; }
private void mi_ajout_promotion_Click(object sender, RoutedEventArgs e) { AjoutPromotion ajoutPromotion = new AjoutPromotion(FormationDAO.GetAll()); this.Ajout.Content = ajoutPromotion; }
private void mi_ajout_matiere_Click(object sender, RoutedEventArgs e) { AjoutMatiere ajoutMatiere = new AjoutMatiere(FormationDAO.GetAll()); this.Ajout.Content = ajoutMatiere; }