/// <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]); }
public FrameContextElement(GUIFrame targetFrame) { this.FrameName = targetFrame.ResName; this.TargetFrame = targetFrame; this.FrameOpenParam = targetFrame.OpenFrameParam; }
/// <summary> /// 是否在窗口链中 /// </summary> /// <param name="frame"></param> /// <returns></returns> private int GetFrameIndexOfChain(GUIFrame frame) { return(this.m_frameChain.FindIndex(item => item.FrameName == frame.ResName)); }