protected virtual void OnCustomActiveKey(CustomActiveKeyArgs e)
        {
            var handler = CustomActiveKey;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        protected override void OnViewChanging(View view)
        {
            base.OnViewChanging(view);
            var customActiveKeyArgs = new CustomActiveKeyArgs(view);

            OnCustomActiveKey(customActiveKeyArgs);
            if (!customActiveKeyArgs.Handled)
            {
                Active[ControllerActiveKey] = !SecuritySystem.IsAuthenticated;
            }
        }
Пример #3
0
        protected virtual void OnCustomActiveKey(CustomActiveKeyArgs e)
        {
            var handler = CustomActiveKey;

            handler?.Invoke(this, e);
        }