Ejemplo n.º 1
0
 /// <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();
     }
 }
Ejemplo n.º 2
0
 /// <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();
     });
 }