private void UpdateForm_Shown(object sender, EventArgs e) { var updater = new PackageUpdater(this, _pendingUpdates); updater.ProgressChanged += (s, ea) => UpdateProgress(ea.Progress, ea.CurrentStep, ea.TotalSteps); updater.Completed += (s, ea) => CompleteUpdate(ea.Exception); updater.Start(); }