Exemplo n.º 1
0
 /// <summary>
 /// Called when the user has accepted an update.
 /// </summary>
 private void UpdateQueryWindow_UpdateAccepted(object sender, EventArgs e)
 {
     innerPanel.Hide();
     innerPanel.UpdateWindow.SetData(CUpdater.ServerGameVersion);
     innerPanel.Show(innerPanel.UpdateWindow);
     lblUpdateStatus.Text = "Updating...";
     UpdateInProgress     = true;
     CUpdater.StartAsyncUpdate();
 }
Exemplo n.º 2
0
        private void CUpdater_FileIdentifiersUpdated()
        {
            if (!isStartingForceUpdate)
            {
                return;
            }

            if (CUpdater.DTAVersionState == VersionState.UNKNOWN)
            {
                XNAMessageBox.Show(WindowManager, "Force Update Failure", "Checking for updates failed.");
                CloseWindow();
                return;
            }

            SetData(CUpdater.ServerGameVersion);
            CUpdater.StartAsyncUpdate();
            isStartingForceUpdate = false;
        }