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

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

            val.Clear();

            if (olds != val && IsChangedHandlers())
            {
                OnChanged(this, new ChangedEventsArgs(olds, val));
            }
        }
Ejemplo 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));
            }
        }