Exemplo n.º 1
0
 public static void ListAllBooks()
 {
     // BooksWriter bookwr = new BooksWriter();
     //  bookwr.AddBook();
     // BooksWriter.AddBook(1, "Sigmar", "Cat world2");
     // Console.WriteLine("not implemented");
     BooksWriter.ListBooks();
 }
Exemplo n.º 2
0
        public static void Add()
        {
            Console.WriteLine("ISBN number:");
            int isbnNr = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Author name:");
            String AuthorName = Console.ReadLine();

            Console.WriteLine("Book title:");
            String BookTitle = Console.ReadLine();

            BooksWriter.AddBook(isbnNr, AuthorName, BookTitle);

            // Console.WriteLine("Add Title not implemented");
            //Console.ReadKey();
        }
Exemplo n.º 3
0
        public static void AddNewBook()
        {
            Console.WriteLine("ISBN number:");
            int isbnNr = Convert.ToInt32(Console.ReadLine());

            Console.WriteLine("Author name:");
            String AuthorName = Console.ReadLine();

            Console.WriteLine("Book title:");
            String BookTitle = Console.ReadLine();

            BooksWriter.AddBook(isbnNr, AuthorName, BookTitle);

            Console.Clear();
            //   BooksWriter.AddBook(1, "Sigmar", "Cat world2");

            /* bool keepRunning = true;
             * do
             * {
             *   Console.WriteLine(" | Q: Cancel ");
             *
             *
             *
             *   ConsoleKeyInfo key = Console.ReadKey();
             *   Console.Clear();
             *   switch (key.Key)
             *   {
             *
             *   //    case ConsoleKey.S:
             *     //      Console.WriteLine("not implemented");
             *       //    break;
             *
             *       case ConsoleKey.Escape:
             *           keepRunning = false;
             *           break;
             *       default:
             *           Console.WriteLine(key);
             *           break;
             *   }
             * } while (keepRunning); */
        }
Exemplo n.º 4
0
 public static void List()
 {
     BooksWriter.ListBooks();
     //  Console.WriteLine("List Title not implemented");
     Console.ReadKey();
 }