Пример #1
0
        /// <summary>
        /// 打开指定窗口
        /// </summary>
        /// <param name="winName"></param>
        /// <param name="resCfg"></param>
        public void OpenWindow(string winName, WinResurceCfg resCfg)
        {
            TUIWindow tUIWindow = this.ReadyToShowWin(winName, resCfg);

            if (tUIWindow)
            {
                this.AdjustWinDepth(tUIWindow);
                this.RefreshReturnSeq(winName, tUIWindow);
                this.DoShowWindow(winName, tUIWindow);
                if (tUIWindow.DataCfg.WinType == WindowType.Normal)
                {
                    this.mPreNormalWin = this.mCurNormalWin;
                    this.mCurNormalWin = tUIWindow;
                }
                if (tUIWindow.DataCfg.IsOnset)
                {
                    this.ClearReturnSeq();
                }
            }
        }
Пример #2
0
 /// <summary>
 /// 预加载指定窗口
 /// </summary>
 /// <param name="winName"></param>
 /// <param name="resCfg"></param>
 public void PreloadWindow(string winName, WinResurceCfg resCfg)
 {
     TUIWindow tUIWindow = this.ReadyToShowWin(winName, resCfg);
 }