public MenuWithInterfaces() { r_MainMenu = new MainMenu(); MenuItem subMenuToAdd = null; r_Date = new DateItem(); r_Time = new TimeItem(); r_SpaceCount = new SpaceCounterItem(); r_Version = new VersionNumberItem(); subMenuToAdd = MainMenu.MenuRoot.AddMenuItem("Version and Spaces"); subMenuToAdd.AddExecutableItem("Count Spaces", r_SpaceCount); subMenuToAdd.AddExecutableItem("Show Version", r_Version); subMenuToAdd = MainMenu.MenuRoot.AddMenuItem("Show Date and Time"); subMenuToAdd.AddExecutableItem("Show Date", r_Time); subMenuToAdd.AddExecutableItem("Show Time", r_Date); MainMenu.Show(); }