示例#1
0
        /// <summary>
        /// This will create a generic FocusFrameElement to push onto the Focuser.
        /// </summary>
        /// <param name="_frame"></param>
        public void PushFrame(Frame _frame)
        {
            EnviromentFrameStack.Push(new FrameMeta(_frame));
            FramePushed?.Invoke(this);

            YieldFocuser();
        }
示例#2
0
        /// <summary>
        /// Use this method if you want priority over the FramePush event.
        /// </summary>
        /// <param name="_frameElement"></param>
        public void PushFrame(FrameMeta _frameElement)
        {
            EnviromentFrameStack.Push(_frameElement);

            // The only time this method should EVER be called.
            _frameElement.NotifyFramePush();

            FramePushed?.Invoke(this);

            YieldFocuser();
        }