Exemple #1
0
        /// <summary>
        /// 退出指定UI窗体
        /// </summary>
        /// <param name="strUIFormName"></param>
        void ExitUIForms(string strUIName)
        {
            BaseUIForm baseUIForm = null;

            _DicCurrentShowUIForms.TryGetValue(strUIName, out baseUIForm);
            if (baseUIForm == null)
            {
                return;
            }
            baseUIForm.Hiding();
            _DicCurrentShowUIForms.Remove(strUIName);
        }
Exemple #2
0
 /// <summary>
 /// (反向切换类型窗体)窗体出栈逻辑
 /// </summary>
 void PopUIFroms(string strUIName)
 {
     if (_StaCurrentUIForms.Count >= 2)
     {
         //出栈处理
         BaseUIForm topUIForm = _StaCurrentUIForms.Pop();
         //隐藏该出栈对象
         topUIForm.Hiding();
         //获取出栈后的栈顶对象
         BaseUIForm nextUIForm = _StaCurrentUIForms.Peek();
         //被覆盖的上一个窗体重新显示
         nextUIForm.Redisplay();
     }
     if (_StaCurrentUIForms.Count == 1)
     {
         //出栈处理
         BaseUIForm topUIForms = _StaCurrentUIForms.Pop();
         //做隐藏处理
         topUIForms.Hiding();
     }
 }