Beispiel #1
0
 private void PopUIForm()
 {
     if (_StaCurrentUIForms.Count >= 2)
     {
         /* 出栈逻辑 */
         BaseUIForm topUIForm = _StaCurrentUIForms.Pop();
         //出栈的窗体,进行隐藏处理
         topUIForm.Hiding();
         //出栈窗体的下一个窗体逻辑
         BaseUIForm nextUIForm = _StaCurrentUIForms.Peek();
         //下一个窗体“重新显示”处理
         nextUIForm.ReDisplay();
     }
     else if (_StaCurrentUIForms.Count == 1)
     {
         /* 出栈逻辑 */
         BaseUIForm topUIForm = _StaCurrentUIForms.Pop();
         //出栈的窗体,进行“隐藏”处理
         topUIForm.Hiding();
     }
 }