From dea10bee3b12994e153ae4b08e07d7314608684e Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期一, 22 三月 2021 09:06:54 +0800
Subject: [PATCH] 更新环境功能UI
---
HDL_ON/UI/UI0-Stan/Logic/HdlFormLogic.cs | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI0-Stan/Logic/HdlFormLogic.cs b/HDL_ON/UI/UI0-Stan/Logic/HdlFormLogic.cs
old mode 100755
new mode 100644
index dd40fac..5d9902c
--- a/HDL_ON/UI/UI0-Stan/Logic/HdlFormLogic.cs
+++ b/HDL_ON/UI/UI0-Stan/Logic/HdlFormLogic.cs
@@ -163,6 +163,32 @@
#region 鈻� 涓�鑸柟娉昣__________________________
/// <summary>
+ /// 鍏抽棴鎵�鏈夋墦寮�浜嗙殑鐣岄潰
+ /// </summary>
+ /// <param name="tagetFrom">鐩爣鐣岄潰,濡傛灉鎸囧畾浜嗙殑璇�,鍒欏叧闂洰鏍囩晫闈笂灞傜殑鍏ㄩ儴鐣岄潰(瀹冭嚜韬笉鍏抽棴)</param>
+ public void CloseAllOpenForm(string tagetFrom = null)
+ {
+ //鏈�鍚庝竴涓槸瑁呰浇涓婚〉鐨勫鍣�,鎵�浠ヤ笉鑳藉垹闄�
+ while (MainPage.BasePageView.ChildrenCount > 1)
+ {
+ var view = MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1);
+ if (view is CommonFormBase)
+ {
+ if (((CommonFormBase)view).FormID == tagetFrom)
+ {
+ //鍙叧闂埌鎸囧畾鐩爣鐣岄潰
+ return;
+ }
+ ((CommonFormBase)view).CloseForm();
+ }
+ else
+ {
+ view.RemoveFromParent();
+ }
+ }
+ }
+
+ /// <summary>
/// 鑾峰彇褰撳墠姝e湪婵�娲荤殑鐣岄潰
/// </summary>
/// <returns></returns>
--
Gitblit v1.8.0