private void Buy() { bool loop = true; while (loop) { Console.Clear(); Menus.Buy(); var input = Console.ReadKey(true).Key; switch (input) { case ConsoleKey.D1: case ConsoleKey.NumPad1: printMgr.Buy(); break; case ConsoleKey.D2: case ConsoleKey.NumPad2: printMgr.ShowCart(); break; case ConsoleKey.D3: case ConsoleKey.NumPad3: loop = false; break; } } }