Ejemplo n.º 1
0
        /// <summary>
        ///  “反向切换”属性窗体的出栈
        /// </summary>
        private void PopUiForm(string uiFormName)
        {
            UIFormBase topUiForm = null;

            // 参数检查
            if (_stackCurrentUiForms.Count > 0)
            {
                topUiForm = _stackCurrentUiForms.Peek();
                if (topUiForm.name == uiFormName)
                {
                    topUiForm = _stackCurrentUiForms.Pop();
                    // 隐藏处理
                    topUiForm.Hiding();
                    if (_stackCurrentUiForms.Count > 0)
                    {
                        // 新的栈顶重新显示
                        UIFormBase nextUiForm = _stackCurrentUiForms.Peek();
                        nextUiForm.ReDisplay();
                    }
                }
            }
        }