/// <summary> /// close pop up window. /// </summary> private void wait_Closed(object sender, EventArgs e) { if (!vm.VM_Wait) { Window m = new Multiplayer(); m.Show(); this.Close(); } }
/// <summary> /// close window. /// </summary> public void CloseWin() { Dispatcher.Invoke(() => {//invike the right thread to change ui Window m = new Multiplayer(); m.Show(); if (War != null) { War.Close(); } this.Close(); }); }