async void btnAccept_Click(object sender, MouseButtonEventArgs e) { btnAccept.Visible = false; btnDecline.Visible = false; lblStatus.Visible = true; UpdateStatus("Installing update... please wait..."); var thread = new Thread(new ThreadStart(async() => { await updater.PerformUpdate(updateResult, UpdateStatus); UpdateStatus("Update complete! This program will restart in 5..."); restartCountdown = 5; tmrRestart.Start(); })); thread.Start(); }
void Updater_InstallationComplete(object sender, EventArgs e) { UpdateStatus("Update complete! This program will restart in 5..."); restartCountdown = 5; tmrRestart.Start(); }