private void Reinstall_Click(object sender, EventArgs e) { if (UserPreferences.Current.ShouldUseBetaPath) { UserPreferences.Current.ResetBetaSourceDirectory(); } StatusLabel.Hide(); installedModsView.Hide(); installedModsTitle.Hide(); InstallButton.Hide(); CloseButton.Hide(); Reinstall.Hide(); modBotSettingsButton.Hide(); LocalVersionLabel.Hide(); LatestVersionLabel.Hide(); ProgressBar.Show(); installingModBotLabel.Show(); ModBotInstallerManager.ProgressBar = ProgressBar; ModBotInstallerManager.Install(UserPreferences.Current.GameInstallationDirectory, OnInstallFinished); }
private void InstallButton_Click(object sender, EventArgs e) { if ((_installationState != ModBotInstallationState.UpToDate && _installationState != ModBotInstallationState.BetaVersion) || UserPreferences.Current.ShouldUseBetaPath) { StatusLabel.Hide(); installedModsView.Hide(); installedModsTitle.Hide(); InstallButton.Hide(); CloseButton.Hide(); Reinstall.Hide(); modBotSettingsButton.Hide(); LocalVersionLabel.Hide(); LatestVersionLabel.Hide(); ProgressBar.Show(); installingModBotLabel.Show(); ModBotInstallerManager.ProgressBar = ProgressBar; ModBotInstallerManager.Install(UserPreferences.Current.GameInstallationDirectory, OnInstallFinished); } else { StartGameAndExit(); } }