예제 #1
0
 private void formClosingHandler(object sender, CancelEventArgs e)
 {
     InstallActions.workerRequestCancel = true;
     if (DownloadPatchWorker.IsBusy)
     {
         DownloadPatchWorker.CancelAsync();
     }
     while (DownloadPatchWorker.IsBusy || DownloadWorker.IsBusy)
     {
         Application.DoEvents();
     }
     ;
 }
예제 #2
0
 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.");
     }
 }