public void PopActiveSetting() { bool was = (bool)ActiveStack.Pop(); bool newSetting = (bool)ActiveStack.Peek(); if (was != newSetting) { NotifyEnabledChanged(); } }
public void PushActiveSetting(bool newSetting) { bool was = (bool)ActiveStack.Peek(); ActiveStack.Push(newSetting); if (was != newSetting) { NotifyEnabledChanged(); } }