static int interval = 1084; // Sleep interval static void Main(string[] args) { Librarian Nancy; init(out Nancy); Nancy.Greeting(); Console.WriteLine(); Console.WriteLine("Press a key to continue...\n"); Console.ReadKey(); Console.WriteLine($"{Person.Persons[4]} wants to rent {Book.BookList[0]}."); Nancy.Rent(Book.BookList[0], Person.Persons[4]); Console.WriteLine(); Console.WriteLine("Press a key to continue...\n"); Console.ReadKey(); Console.WriteLine($"{Person.Persons[5]} wants to rent {Book.BookList[0]}."); Nancy.Rent(Book.BookList[0], Person.Persons[5]); Console.WriteLine(); Console.WriteLine("Press a key to continue...\n"); Console.ReadKey(); Console.WriteLine($"{Person.Persons[2]} wants to rent {Book.BookList[0]}."); Nancy.Rent(Book.BookList[0], Person.Persons[2]); Console.WriteLine(); // Some persons want to be notified Nancy.NotifyOn(Person.Persons[2]); Nancy.NotifyOn(Person.Persons[3]); Nancy.NotifyOn(Person.Persons[4]); Console.WriteLine("Press a key to continue...\n"); Console.ReadKey(); Console.WriteLine($"{Person.Persons[4]} returns {Book.BookList[0]}."); Nancy.Return(Book.BookList[0], Person.Persons[4]); Console.WriteLine(); Console.WriteLine("Press a key to continue...\n"); Console.ReadKey(); Person.Persons[2].PrintWishlist(); Person.Persons[3].PrintWishlist(); Person.Persons[4].PrintWishlist(); //checkSearch(Nancy); //checkRent(Nancy); Console.WriteLine($"{Person.Persons[2]} asks for list of books in the library."); Nancy.PrintBookList(Person.Persons[2]); Console.WriteLine(); Console.WriteLine("Press a key to continue...\n"); Console.ReadKey(); Nancy.PrintRentals(); //Person.PrintEveryone(); //Author.PrintEveryone(); //Nancy.PrintMemberList(); Console.Write("Press a key to quit."); Console.ReadKey(); }