protected override void PostEnabled() { if (_visible) { MenuGlobals.PushMenuOpened(); } }
protected override void PostDisabled() { if (_visible) { MenuGlobals.PopMenuOpened(); } }
private void SetVisible(bool value) { if (_visible != value) { _visible = value; if (_visible) { MenuGlobals.PushMenuOpened(); } else { MenuGlobals.PopMenuOpened(); } } }