예제 #1
0
        static void employee(CollectieBibliotheek bibliotheek)
        {
            var user = Medewerker.PromoveerLidNaarMedewerker(memberlogin(bibliotheek));

            while (true)
            {
                ZoekJouwItem(user);
            }
        }
예제 #2
0
 public Bezoeker(
     CollectieBibliotheek collectieBibliotheek,
     string familieNaam,
     string voorNaam)
 {
     CollectieBibliotheek = collectieBibliotheek;
     FamilieNaam          = familieNaam;
     VoorNaam             = voorNaam;
 }
예제 #3
0
        static void visitor(CollectieBibliotheek bibliotheek)
        {
            var user = connectionvisiteur(bibliotheek);

            while (true)
            {
                ZoekJouwItem(user);
            }
        }
예제 #4
0
        static void member(CollectieBibliotheek bibliotheek)
        {
            var user = memberlogin(bibliotheek);

            while (true)
            {
                ZoekJouwItem(user);
            }
        }
예제 #5
0
 public Lid(
     CollectieBibliotheek collectieBibliotheek,
     string familieNaam,
     string voorNaam,
     string geboorteDatum)
     : base(collectieBibliotheek,
            familieNaam,
            voorNaam)
 {
     GeboorteDatum       = geboorteDatum;
     UitleenHistoriek    = new List <Item>();
     UitleenItems        = new List <Item>();
     CollectieReservatie = new List <Item>();
 }
예제 #6
0
 private Medewerker(
     CollectieBibliotheek collectieBibliotheek,
     string familieNaam,
     string voorNaam,
     string geboorteDatum,
     List <Item> uitleenHistoriek,
     List <Item> uitleenItems,
     List <Item> collectieReservatie)
     : base(collectieBibliotheek,
            familieNaam,
            voorNaam,
            geboorteDatum,
            uitleenHistoriek,
            uitleenItems,
            collectieReservatie)
 {
 }
예제 #7
0
 public Lid(
     CollectieBibliotheek collectieBibliotheek,
     string familieNaam,
     string voorNaam,
     string geboorteDatum,
     List <Item> uitleenHistoriek,
     List <Item> uitleenItems,
     List <Item> collectieReservatie)
     : base(collectieBibliotheek,
            familieNaam,
            voorNaam)
 {
     GeboorteDatum       = geboorteDatum;
     UitleenHistoriek    = uitleenHistoriek;
     UitleenItems        = uitleenItems;
     CollectieReservatie = collectieReservatie;
 }
예제 #8
0
 static Bezoeker connectionvisiteur(CollectieBibliotheek bibliotheek)
 {
     do
     {
         Console.WriteLine("Typ jouw eerste naam in: ");
         string Firstname = Console.ReadLine().Trim();
         Console.WriteLine("Typ jouw familienaam in: ");
         string Familyname = Console.ReadLine().Trim();
         if (string.IsNullOrEmpty(Firstname) || string.IsNullOrEmpty(Familyname))
         {
             Console.WriteLine("ALLEEN letters invullen");
             continue;
         }
         Console.WriteLine("Jij bent ingelogd !");
         return(new Bezoeker(bibliotheek, Familyname, Firstname));
     } while (true);
 }
예제 #9
0
 static Lid memberlogin(CollectieBibliotheek bibliotheek)
 {
     do
     {
         Console.WriteLine("Typ jouw eerste naam in: ");
         string Firstname = Console.ReadLine().Trim();
         Console.WriteLine("Typ jouw familienaam in: ");
         string Familyname = Console.ReadLine().Trim();
         Console.WriteLine("Typ jouw geboortedatum in: ");
         string Birthdate = Console.ReadLine().Trim();
         if (string.IsNullOrEmpty(Firstname) || string.IsNullOrEmpty(Familyname))
         {
             Console.WriteLine("Alleen letter gebruiken !");
             continue;
         }
         Console.WriteLine("Jij bent ingelogd !");
         return(new Lid(bibliotheek, Familyname, Firstname, Birthdate));
     } while (true);
 }
예제 #10
0
        static void Main(string[] args)
        {
            var bibliotheek = new CollectieBibliotheek();

            bibliotheek.ItemsInCollectie.Add(new Item(SoortItem.Boek, "1", "The Invited - Jennifer McMahon", "", "", "", 0));
            string usertype = null;

            while (usertype != "1" && usertype != "2" && usertype != "")
            {
                Console.WriteLine("Typ 1 om als lid in te loggen, typ 2 om als medewerker in te loggen (alleen op ENTER drukken om als bezoeker ingelogd te blijven !)");
                usertype = Console.ReadLine();
                if (usertype == "1")
                {
                    Console.WriteLine("Jij bent lid !");
                }
                else if (usertype == "2")
                {
                    Console.WriteLine("Jij bent medewerker !");
                }
                else if (usertype == "")
                {
                    Console.WriteLine("Jij bent een bezoeker !");
                }
                else
                {
                    Console.WriteLine("WRONG INPUT, ERROR 405");
                }
            }
            if (usertype == "1")
            {
                member(bibliotheek);
            }
            else if (usertype == "2")
            {
                employee(bibliotheek);
            }
            else if (usertype == "")
            {
                visitor(bibliotheek);
            }
            Console.WriteLine("");
        }