private static int PrintMenuItems(int item, string[] menuItems) { ConsoleModifications.TextAlign(); for (int i = 0; i < menuItems.Length; i++) { Console.ResetColor(); ConsoleModifications.SetCursorPosition(i, menuItems[i].Length); if (item == i) { ConsoleModifications.ChangeColour(); Console.WriteLine(menuItems[i]); } else { Console.WriteLine(menuItems[i]); } } return(item); }
public static void Main(string[] args) { ConsoleModifications.Run(); Menu.Items(); }