示例#1
0
        /// <summary>
        /// 出栈 ,把页面从界面上移除
        /// </summary>
        public void PopPanel()
        {
            if (m_panelStack == null)
            {
                m_panelStack = new Stack <IPanel>();
            }

            if (m_panelStack.Count <= 0)
            {
                return;
            }

            //关闭栈顶页面的显示
            IPanel topPanel = m_panelStack.Pop();

            topPanel.OnExit();

            if (m_panelStack.Count <= 0)
            {
                return;
            }
            IPanel topPanel2 = m_panelStack.Peek();

            topPanel2.OnResume();
        }