Esempio n. 1
0
        static void ViewAllBooks()
        {
            Console.WriteLine("\nThese are all the books in the library.");

            for (int i = 0; i < Library.Count(); i++)
            {
                Console.WriteLine("--> " + Library.ElementAt(i).Title
                                  + " by " + Library.ElementAt(i).Author.FirstName
                                  + " " + Library.ElementAt(i).Author.LastName);
            }
        }
Esempio n. 2
0
        static void ViewBookBag()
        {
            Console.WriteLine("\nThese are all the books in your book bag.");

            for (int i = 0; i < BookBag.Count; i++)
            {
                Console.WriteLine("--> " + BookBag[i].Title
                                  + " by " + Library.ElementAt(i).Author.FirstName
                                  + " " + Library.ElementAt(i).Author.LastName);
            }
        }