Esempio n. 1
0
        /// <summary>
        /// 反转窗体界面关闭
        /// </summary>
        private void ReverseCloseUIForm()
        {
            if (_StaCurrentUIForm.Count >= 2)
            {
                BaseUIForm topUIForm = _StaCurrentUIForm.Pop();
                topUIForm.Hiding();

                BaseUIForm nextUIForm = _StaCurrentUIForm.Peek();
                nextUIForm.Redisplay();
            }
            else if (_StaCurrentUIForm.Count == 1)
            {
                BaseUIForm topUIForm = _StaCurrentUIForm.Pop();
                topUIForm.Hiding();
            }
        }
 /// <summary>
 /// 反向切换类型的窗体的退出
 /// (反向切换类型的窗体的出栈,退出这个窗体)
 /// </summary>
 private void PopUIForm()
 {
     if (_StaCurrentUIForms.Count > 1)
     {
         //出栈处理
         BaseUIForm topUIForm = _StaCurrentUIForms.Pop();
         //做隐藏处理
         topUIForm.Hiding();
         //下一个窗体重新显示
         BaseUIForm nextUIForm = _StaCurrentUIForms.Peek();
         nextUIForm.Redisplay();
     }
     else if (_StaCurrentUIForms.Count == 1)
     {
         //出栈处理
         BaseUIForm topUIForm = _StaCurrentUIForms.Pop();
         //做隐藏处理
         topUIForm.Hiding();
     }
 }
Esempio n. 3
0
 //(“反向切换”属性)窗体的出栈逻辑
 private void PopUIFroms()
 {
     if (_StaCurrentUIForms.Count >= 2)
     {
         //出栈处理
         BaseUIForm topUIForms = _StaCurrentUIForms.Pop();
         //做隐藏处理
         topUIForms.Hiding();
         //出栈后,下一个窗体做“重新显示”处理。
         BaseUIForm nextUIForms = _StaCurrentUIForms.Peek();
         nextUIForms.Redisplay();
     }
     else if (_StaCurrentUIForms.Count == 1)
     {
         //出栈处理
         BaseUIForm topUIForms = _StaCurrentUIForms.Pop();
         //做隐藏处理
         topUIForms.Hiding();
     }
 }