public DelegateMenuTest() { Delegates.MainMenu dateTimeMenu = m_Menu.AddMenu("Show Date/Time"); dateTimeMenu.AddItem("Show date").Displaying += new ShowDate().Run; dateTimeMenu.AddItem("Show time").Displaying += new ShowTime().Run; Delegates.MainMenu infoAndVersionMenu = m_Menu.AddMenu("Version and digit"); infoAndVersionMenu.AddItem("Show virsion").Displaying += new ShowVersion().Run; infoAndVersionMenu.AddItem("Count digits").Displaying += new CountDigits().Run; }