private void formClosingHandler(object sender, CancelEventArgs e) { InstallActions.workerRequestCancel = true; if (DownloadPatchWorker.IsBusy) { DownloadPatchWorker.CancelAsync(); } while (DownloadPatchWorker.IsBusy || DownloadWorker.IsBusy) { Application.DoEvents(); } ; }
private void PatchedNextButton_Click(object sender, EventArgs e) { page1.Visible = false; page2patched.Visible = true; if (InstallActions.CheckSteamSkinDirectoryExists(SteamSkinPath)) { DownloadPatchWorker.RunWorkerAsync(); } else { MessageBox.Show("No Steam Skin directory found."); } }