Exemple #1
0
 public EditUnitsWindow(Notebook notebook, IStockage storage)
 {
     this.notebook = notebook;
     this.storage  = storage;
     InitializeComponent();
     DrawUnits();
 }
Exemple #2
0
 public ListExamsWindow(Notebook notebook, IStockage stockage)
 {
     InitializeComponent();
     this.notebook = notebook;
     this.storage  = stockage;
     DrawExams();
 }
        /// <summary>
        /// methode permettant de charger toutes les fiches présentent dans la table de nom de fiche de jeu
        /// </summary>
        /// <param name="stockage"></param>
        /// <returns></returns>
        public FicheDeJeu[] chargerToutesLesFiches(IStockage stockage)
        {
            FicheDeJeu[] fichesDeJeu = new FicheDeJeu[nomsFiche.Count];


            for (int i = 0; i < nomsFiche.Count; i++)
            {
                fichesDeJeu[i] = stockage.SelectionnerUneFiche(nomsFiche[i]);
            }
            fiches = new List <FicheDeJeu>(fichesDeJeu);
            return(fichesDeJeu);
        }
        public EditExamWindow(Notebook nb, IStockage storage, Exam exam)
        {
            this.notebook = nb;
            InitializeComponent();
            DrawModules();
            this.storage = storage;
            this.exam    = exam;

            CB_Absent.IsChecked = this.exam.IsAbsent;

            if (this.exam.IsAbsent)
            {
                TB_Score.IsEnabled = false;
            }

            TB_Coef.Text           = this.exam.Coef.ToString();
            TB_Score.Text          = this.exam.Score.ToString();
            TB_Teacher.Text        = this.exam.Teacher;
            DP_Date.SelectedDate   = this.exam.DateExam;
            CB_Module.SelectedItem = this.exam.Module;
        }
Exemple #5
0
 public MainWindow()
 {
     this.storage  = new JsonStockage();
     this.notebook = storage.Load();
     InitializeComponent();
 }