static void Main(string[] args) { IMenuRunHandler <int> mh = new MenuRunHandler <int>(); Action a = new Action(Check1); mh.RunMenu = new RunIntMenu(); mh.RunMenu.Menu.AddOption(1, "Check1", a); mh.RunMenu.Run(); }
public static void Check1() { IMenuRunHandler <string> mh = new MenuRunHandler <string>(); Action a = new Action(Check2); mh.RunMenu = new RunStringMenu(); mh.RunMenu.Menu.AddOption("This is a key", "Check2", a); mh.RunMenu.Run(); }