private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { Dictionary <string, string> results = (Dictionary <string, string>)e.Result; if (results != null) { string newVersionString = results["NewVersion"]; string supportExpiredString = results["SupportExpired"]; if (newVersionString != "") { DesktopAlert.ShowDesktopAlertForNewVersion(newVersionString); } if (supportExpiredString != "") { FormSupportExpiry form = new FormSupportExpiry(supportExpiredString); form.ShowDialog(); } } }