Beispiel #1
0
        public static void Main(string[] args)
        {
            interfaceTest interfaceTest = new interfaceTest();
            DelegatesTest delegatesTest = new DelegatesTest();

            interfaceTest.Show();
            delegatesTest.Show();
        }
Beispiel #2
0
        private static void delegateMenu()
        {
            Delegates.MainMenu mainMenuDelegates    = new Delegates.MainMenu("Main Menu");
            DelegatesTest      dateAndTimeDelegates = new DelegatesTest();
            int showDateTimeHashCode = mainMenuDelegates.AddNewMenuItemUnder(mainMenuDelegates.RootHashCode, "Show Date/Time");
            int showVersionAndDigits = mainMenuDelegates.AddNewMenuItemUnder(mainMenuDelegates.RootHashCode, "Version and Digits");

            mainMenuDelegates.AddNewOperationItemUnder(showDateTimeHashCode, "Show Date", dateAndTimeDelegates.ShowDate_Click);
            mainMenuDelegates.AddNewOperationItemUnder(showDateTimeHashCode, "Show Time", dateAndTimeDelegates.ShowTime_Click);

            mainMenuDelegates.AddNewOperationItemUnder(showVersionAndDigits, "Count Digits", dateAndTimeDelegates.CountDigits_Click);
            mainMenuDelegates.AddNewOperationItemUnder(showVersionAndDigits, "Show Version", dateAndTimeDelegates.ShowVersion_Click);

            mainMenuDelegates.Show();
        }