コード例 #1
0
        public static void GetBook()
        {
            Console.WriteLine("Librarian gets the book from the library.");
            //for getting the book and giving it to the customer
            switch (NameLibrarian)
            {
            case "Robin":
                Librarian1.SpeedGettingBook();
                break;

            case "Yuri":
                Librarian2.SpeedGettingBook();
                break;

            default:
                break;
            }

            BookAvailability = false;
            Customer.HasBook();
            BookCustomer = "";
            Availability = true;
        }