void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { progressWin.Close(); if (uploadErrors > 0) { string s = (uploadErrors > 1) ? "s" : ""; MessageBox.Show(string.Format("{0} Issue{1} had errors!", uploadErrors, s), "Error", MessageBoxButton.OK, MessageBoxImage.Error); } if (e.Cancelled) { MessageBox.Show("Upload Canceled!", "Error", MessageBoxButton.OK, MessageBoxImage.Error); } if (uploadComplete != null) { uploadComplete(this, new IntArg(projIndex)); } if (delAfter) { DeleteDirectory(path); } }
public void disposeProgressWin() { progressWin.Close(); }