Beispiel #1
0
 /*******************************
  *  verification if there us or not an update for the game
  * /********************************/
 private void CheckForGameUpdate()
 {
     if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
     {
         Repair repair = new Repair();
         myState.changeButtonState(LauncherState.Repair, this);
         thread = new Thread(() => {
             repair.PerformRepair(this);
         });
         thread.Start();
     }
     else
     {
         MessageBox.Show("Be smart, you need a valid internet connection.");
         Application.Exit();
     }
 }