Ejemplo n.º 1
0
        internal void Start()
        {
            var pets  = new PetController();
            var books = new BookController();
            var loop  = true;

            while (loop)
            {
                UI.PrintStartMenu();
                var input = Console.ReadKey(true).Key;

                switch (input)
                {
                case ConsoleKey.D1:
                    books.CallBookMenu();
                    break;

                case ConsoleKey.D2:
                    pets.CallPetMenu();
                    break;

                case ConsoleKey.D3:
                    loop = false;
                    break;
                }
            }
        }