static void Main() { Console.Clear(); Console.WriteLine(@" =================================================================== _____ _ _ ____ _ | __ (_) ( ) | _ \ | | | |__) | ___ _ __ _ __ ___|/ ___ | |_) | __ _| | _____ _ __ _ _ | ___/ |/ _ \ '__| '__/ _ \ / __| | _ < / _` | |/ / _ \ '__| | | | | | | | __/ | | | | __/ \__ \ | |_) | (_| | < __/ | | |_| | |_| |_|\___|_| |_| \___| |___/ |____/ \__,_|_|\_\___|_| \__, | __/ | |___/ ====================================================================== ", Color.BlueViolet); Console.WriteLine(@"--------------------- [MAIN MENU] -----------------------"); Console.WriteLine(@" Bread $5: Buy 2, get 1 free."); Console.WriteLine(@" Pastry $2: Buy 3 for $5."); StyleSheet styleSheet = new StyleSheet(Color.Green); styleSheet.AddStyle("B[A-Z]*", Color.Red); styleSheet.AddStyle("P[A-Z]*", Color.Cyan); styleSheet.AddStyle("C[A-Z]*", Color.Yellow); styleSheet.AddStyle("Q[A-Z]*", Color.White); //Menu string string Menu = (@" | [B] for bread menu | | [P] for pastry menu | | [C] to view your cart | | [Q] to quit | "); //print Menu Console.WriteStyled(Menu, styleSheet); Console.WriteLine(); Console.Write(" Enter : ", Color.Green); string input = Console.ReadLine().ToLower(); switch (input) { case "b": Bread.Menu(); Main(); break; case "p": Pastry.Menu(); Main(); break; case "c": Cart.Menu(); Main(); break; case "q": break; default: TryAgain(); Main(); break; } }