| | |
| | | private void OnRealmUp()
|
| | | {
|
| | | CloseChildWin();
|
| | | if (windowState == WindowState.Opened)
|
| | | {
|
| | | WindowCenter.Instance.OpenWithoutAnimation<RealmUpWin>();
|
| | | }
|
| | | else
|
| | | {
|
| | | WindowCenter.Instance.Open<RealmUpWin>();
|
| | | }
|
| | | WindowCenter.Instance.Open<RealmUpWin>();
|
| | | functionOrder = 0;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void CloseChildWin()
|
| | | {
|
| | | if (WindowCenter.Instance.IsOpen<RealmUpWin>())
|
| | | var children = WindowConfig.Get().FindChildWindows("RealmWin");
|
| | | foreach (var window in children)
|
| | | {
|
| | | WindowCenter.Instance.CloseImmediately<RealmUpWin>();
|
| | | WindowCenter.Instance.Close(window);
|
| | | }
|
| | | }
|
| | | }
|