Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 void Updater_InstallationComplete(object sender, EventArgs e)
 {
     UpdateStatus("Update complete! This program will restart in 5...");
     restartCountdown = 5;
     tmrRestart.Start();
 }