/// <summary> /// 关闭销毁所有窗口 /// </summary> public void DestroyAllWindows() { List <string> list = new List <string>(this.mDicAllWindows.Keys); TUIWindow tUIWindow = null; for (int i = 0; i < list.Count; i++) { if (this.mDicAllWindows.TryGetValue(list[i], out tUIWindow)) { if (this.OnClosed != null) { this.OnClosed(new CloseWindowEventArgs(true, list[i], true, true, tUIWindow)); } if (tUIWindow != null) { tUIWindow.CloseWindow(true); } } } this.mDicAllWindows.Clear(); this.mDicOpenWindows.Clear(); this.mSepReturnWins.Clear(); }