コード例 #1
0
 public void ConfigureMenuItems(IMenuNavigator navigator, IList <MenuItem> menuItems)
 {
     menuItems.Add(new MenuItem("Enter TestMenu2", () => navigator.GoTo(new TestMenu2())));
     menuItems.Add(new MenuItem("Enter TestMenu3", () => navigator.GoTo(new TestMenu3())));
     menuItems.Add(new MenuItem("Add two numbers", () => AddNumbers(navigator)));
     menuItems.Add(new MenuItem("Exit", () => Environment.Exit(0)));
 }
コード例 #2
0
 public void ConfigureMenuItems(IMenuNavigator navigator, IList <MenuItem> menuItems)
 {
     menuItems.Add(new MenuItem("Enter TestMenu3", () => navigator.GoTo(new TestMenu3())));
     menuItems.Add(new MenuItem("Go back", () => navigator.GoBack()));
 }