コード例 #1
0
        public void TestFindAll()
        {
            // test du fin by libelle
            List <Annee> resultatFind = AnneeDAO.findAll();

            foreach (Annee annee in resultatFind)
            {
                Assert.IsNotNull(annee.diplome.id);
            }
        }
コード例 #2
0
        /////////
        /////////
        /////////

        /// <summary>
        /// Charge les données de la grille Diplome
        /// </summary>
        private void anneeGridViewLoad()
        {
            List <Annee> allAnnee = AnneeDAO.findAll();
            List <Annee> annee    = new List <Annee>();

            foreach (Annee tempA in allAnnee)
            {
                if (getCurrentDiplome() != null && getCurrentDiplome().id == tempA.diplome.id)
                {
                    annee.Add(tempA);
                }
            }
            BindingListView <Annee> bindingSourceUe = new BindingListView <Annee>(annee);

            anneeGridView.DataSource = bindingSourceUe;
            periodeGridViewLoad();
        }