Ejemplo n.º 1
0
        public bool VoegBoekToe(Boek huidigeBoek)
        {
            bool gelukt = false;

            if (huidigeBoek != null)
            {
                Boeken.Add(huidigeBoek);
                FoutBoodschap = null;
                gelukt        = true;
            }
            else
            {
                FoutBoodschap = ERR_MESSAGE_INPUT_NOT_CORRECT;
            }
            return(gelukt);
        }
Ejemplo n.º 2
0
        private void VulTestgevens()
        {
            Auteur auteur1 = new Auteur("Boon", "Belg", Geslacht.Man);
            Auteur auteur2 = new Auteur("Tuchman", "USA", Geslacht.Vrouw);
            Auteur auteur3 = new Auteur("Cronwell", "UK", Geslacht.Man);

            Auteurs.Add(auteur1);
            Auteurs.Add(auteur2);
            Auteurs.Add(auteur3);

            Boek boek1 = new Boek("De bende van Jan Delichte", 1999, auteur1);
            Boek boek2 = new Boek("De trotse toren", 1999, auteur2);
            Boek boek3 = new Boek("De kanonnen van augustus", 1999, auteur2);
            Boek boek4 = new Boek("Azincourt", 1999, auteur3);

            Boeken.Add(boek1);
            Boeken.Add(boek2);
            Boeken.Add(boek3);
            Boeken.Add(boek4);
        }
Ejemplo n.º 3
0
        private void DoSeeding()
        {
            Auteur auteur1 = new Auteur("Boon", "België");
            Auteur auteur2 = new Auteur("Tuchman", "USA");
            Auteur auteur3 = new Auteur("Cronwell", "UK");

            Auteurs.Add(auteur1);
            Auteurs.Add(auteur2);
            Auteurs.Add(auteur3);

            Boek boek1 = new Boek("De bende van jan de lichte", 1995, auteur1.Auteur_ID);
            Boek boek2 = new Boek("Kapellekesweg", 1997, auteur1.Auteur_ID);
            Boek boek3 = new Boek("De trotse toren", 2001, auteur2.Auteur_ID);
            Boek boek4 = new Boek("Azincourt", 2020, auteur3.Auteur_ID);

            Boeken.Add(boek1);
            Boeken.Add(boek2);
            Boeken.Add(boek3);
            Boeken.Add(boek4);
        }
Ejemplo n.º 4
0
 public void Verwijder(Boek boek)
 {
     Boeken.Remove(boek);
 }