Example #1
0
        public void PopActiveSetting()
        {
            bool was        = (bool)ActiveStack.Pop();
            bool newSetting = (bool)ActiveStack.Peek();

            if (was != newSetting)
            {
                NotifyEnabledChanged();
            }
        }
Example #2
0
        public void PushActiveSetting(bool newSetting)
        {
            bool was = (bool)ActiveStack.Peek();

            ActiveStack.Push(newSetting);
            if (was != newSetting)
            {
                NotifyEnabledChanged();
            }
        }