public void ForceUpdate()
 {
     isStartingForceUpdate = true;
     lblDescription.Text   = $"Force updating {MainClientConstants.GAME_NAME_SHORT} to latest version...";
     lblUpdaterStatus.Text = "Connecting";
     CUpdater.CheckForUpdates();
 }
示例#2
0
 /// <summary>
 /// Starts a check for updates.
 /// </summary>
 private void CheckForUpdates()
 {
     CUpdater.CheckForUpdates();
     lblUpdateStatus.Enabled = false;
     lblUpdateStatus.Text    = "Checking for updates...";
     try
     {
         StatisticsSender.Instance.SendUpdate();
     } catch { }
     lastUpdateCheckTime = DateTime.Now;
 }