Esempio n. 1
0
        // Ф-ия Переключить
        virtual public void Switch()
        {
            SwitcherStruct olds = val;

            val.Switch();
            if (olds != val && IsChangedHandlers())
            {
                OnChanged(this, new ChangedEventsArgs(olds, val));
            }
        }
Esempio n. 2
0
        // Clear()
        public override void Clear()
        {
            SwitcherStruct olds = val;

            val.Clear();

            if (olds != val && IsChangedHandlers())
            {
                OnChanged(this, new ChangedEventsArgs(olds, val));
            }
        }
Esempio n. 3
0
        override public void Switch()
        {
            SwitcherStruct olds = val;

            do
            {
                val.Switch();
            }while (IsNormal() == false);


            if (olds != val && IsChangedHandlers())
            {
                OnChanged(this, new ChangedEventsArgs(olds, val));
            }
        }