Exemplo n.º 1
0
        static void Main(string[] args)
        {
            BookDb bookdb = new BookDb();
            processBookCallDeligates pd = new processBookCallDeligates(sellBook);

            AddBook(bookdb);

            pd += RentBook;
            pd += scrapBook;
            bookdb.processPaperbackBook(pd);
        }
Exemplo n.º 2
0
 static void AddBook(BookDb bookDb)
 {
     bookDb.AddBook("three men in a boat", "undefined", 300, true);
     bookDb.AddBook("the stroy of my life", "hellen keller", 350, true);
 }