Наследование: NotifyPropertyChangedBaseDebug
Пример #1
0
        private void ExecuteExample4()
        {
            if (myExample4CommandTextIndex == 0)
            {
                Example4Randomizer = new RandomIntGenerator();
            }
            else if (myExample4CommandTextIndex == 1)
            {
                Example4Randomizer.Randomize();
            }
            else if (myExample4CommandTextIndex == 2)
            {
                Example4Randomizer = null;
            }

            Example4CommandTextIndex = (Example4CommandTextIndex + 1) % s_Example4CommandText.Length;
        }
        private void ExecuteExample4()
        {
            if (myExample4CommandTextIndex == 0)
                Example4Randomizer = new RandomIntGenerator ();
            else if (myExample4CommandTextIndex == 1)
                Example4Randomizer.Randomize ();
            else if (myExample4CommandTextIndex == 2)
                Example4Randomizer = null;

            Example4CommandTextIndex = (Example4CommandTextIndex + 1) % s_Example4CommandText.Length;
        }