private void TurnOnDisplay() { Menu myMenu = new Menu(); Display.DisplaySteps(); myMenu.AddItemsToMenu(); Display.DisplayMenu(myMenu); }
//Display Menu public static void DisplayMenu(Menu menu) { Console.WriteLine("{0, 15}", "Menu"); Console.WriteLine(); for (int row = 0; row < menu.menuItems.GetLength(0); row++) { for (int col = 0; col < menu.menuItems.GetLength(1); col++) { if (col == 1) { Console.Write((menu.menuItems[row, col] + "лв").PadRight(7)); } else { Console.Write(menu.menuItems[row, col].PadRight(5)); } } Console.WriteLine(); } }