private void Run() { SmartMenu menu = new SmartMenu(); menu.Load("MenuSpec.txt"); menu.Activate(); }
private void Run() { SmartMenu menu = new SmartMenu(); Console.WriteLine("For Dansk: Tryk 1"); Console.WriteLine("For English: Press 2"); int.TryParse(Console.ReadLine(), out int r); if (r != 1 && r != 2) { Console.WriteLine("det indtastede input findes ikke."); Console.ReadLine(); } else { menu.Load(menu.ChooseLanguage(r)); menu.Activate(); } }
private void Run() { SmartMenu menu = new SmartMenu(); Console.WriteLine("For Dansk: Tryk 1"); Console.WriteLine("For English: Press 2"); Console.WriteLine(" "); Console.Write(": "); int input = int.Parse(Console.ReadLine()); if (input != 1 && input != 2) { Console.Clear(); Console.WriteLine("Ups Farvel"); Console.ReadLine(); } else { menu.Load(menu.ChooseLanguage(input)); menu.Activate(); } }