コード例 #1
0
        /// <summary>
        /// 获取指定窗口的上下文
        /// </summary>
        /// <param name="frame"></param>
        /// <returns></returns>
        private FrameContextElement GetFrameContextByFrame(GUIFrame frame)
        {
            int frameIndexInChain = GetFrameIndexOfChain(frame);

            return(frameIndexInChain == -1 ? null : this.m_frameChain[frameIndexInChain]);
        }
コード例 #2
0
 public FrameContextElement(GUIFrame targetFrame)
 {
     this.FrameName      = targetFrame.ResName;
     this.TargetFrame    = targetFrame;
     this.FrameOpenParam = targetFrame.OpenFrameParam;
 }
コード例 #3
0
 /// <summary>
 /// 是否在窗口链中
 /// </summary>
 /// <param name="frame"></param>
 /// <returns></returns>
 private int GetFrameIndexOfChain(GUIFrame frame)
 {
     return(this.m_frameChain.FindIndex(item => item.FrameName == frame.ResName));
 }