void auBackend_UpdateSuccessful(object sender, SuccessArgs e) { // call this function from ownerForm's thread context if (sender != null) { ownerForm.Invoke(new SuccessHandler(auBackend_UpdateSuccessful), new object[] { null, e }); return; } // show the control Visible = !KeepHidden; Text = translation.SuccessfullyUpdated.Replace("%version%", Version); UpdateStepSuccessful(MenuType.UpdateSuccessful); if (UpdateSuccessful != null) { UpdateSuccessful(this, e); } }
void auBackend_UpToDate(object sender, SuccessArgs e) { // call this function from ownerForm's thread context if (sender != null) { ownerForm.Invoke(new SuccessHandler(auBackend_UpToDate), new object[] { null, e }); return; } Text = translation.AlreadyUpToDate; if (Visible) { UpdateStepSuccessful(MenuType.AlreadyUpToDate); } SetMenuText(translation.CheckForUpdatesMenu); if (UpToDate != null) { UpToDate(this, e); } }
/// <summary> /// Handler method that's called when <see cref="MainForm.AutomaticUpdater"/> discovers that the application is already up to date. /// </summary> /// <param name="sender">Object from which this event originated, <see cref="MainForm.AutomaticUpdater"/> in this case.</param> /// <param name="e">Arguments associated with this event.</param> void AutomaticUpdater_UpToDate(object sender, SuccessArgs e) { _statusLabel.Text = "Application is up-to-date."; _progressBar.Style = ProgressBarStyle.Continuous; _progressBar.Value = 100; _okButton.Enabled = true; }
void auBackend_UpdateSuccessful(object sender, SuccessArgs e) { // call this function from ownerForm's thread context if (sender != null) { ownerForm.Dispatcher.Invoke(DispatcherPriority.Normal, new SuccessHandler(auBackend_UpdateSuccessful), null, e); return; } // show the control Visibility = KeepHidden ? Visibility.Hidden : Visibility.Visible; Text = translation.SuccessfullyUpdated.Replace("%version%", Version); UpdateStepSuccessful(MenuType.UpdateSuccessful); if (UpdateSuccessful != null) UpdateSuccessful(this, e); }
void auBackend_UpToDate(object sender, SuccessArgs e) { // call this function from ownerForm's thread context if (sender != null) { ownerForm.Dispatcher.Invoke(DispatcherPriority.Normal, new SuccessHandler(auBackend_UpToDate), null, e); return; } Text = translation.AlreadyUpToDate; if (Visibility == Visibility.Visible) UpdateStepSuccessful(MenuType.AlreadyUpToDate); SetMenuText(translation.CheckForUpdatesMenu); if (UpToDate != null) UpToDate(this, e); }
void auBackend_UpdateSuccessful(object sender, SuccessArgs e) { if (sender != null) { // call this function from ownerForm's thread context InvokeMyself(new SuccessHandler(auBackend_UpdateSuccessful), new object[] {null, e}); return; } // show the control Visible = !KeepHidden; Text = translation.SuccessfullyUpdated.Replace("%version%", Version); UpdateStepSuccessful(MenuType.UpdateSuccessful); if (UpdateSuccessful != null) UpdateSuccessful(this, e); }
private void automaticUpdater_UpToDate(object sender, SuccessArgs e) { checkForUpdatesButtonItem.Text = automaticUpdater.Translation.CheckForUpdatesMenu; }
static void auBackend_UpdateSuccessful(object sender, SuccessArgs e) { Console.WriteLine("Successfully updated to version " + e.Version); Console.WriteLine("Changes: "); Console.WriteLine(auBackend.Changes); }
void auBackend_UpToDate(object sender, SuccessArgs e) { if (sender != null) { // call this function from ownerForm's thread context InvokeMyself(new SuccessHandler(auBackend_UpToDate), new object[] {null, e}); return; } Text = translation.AlreadyUpToDate; if (Visible) UpdateStepSuccessful(MenuType.AlreadyUpToDate); SetMenuText(translation.CheckForUpdatesMenu); if (UpToDate != null) UpToDate(this, e); }
void AuUpToDate(object sender, SuccessArgs e) { SetUpdateFlag(); }
private void AuUpdateSuccessful(object sender, SuccessArgs e) { SetUpdateFlag(); }
void OnUpdateSuccessful(object sender, SuccessArgs e) { Console.WriteLine("success"); }
static void auBackend_UpToDate(object sender, SuccessArgs e) { WriteToLog("Already up-to-date!", true); }
static void auBackend_UpdateSuccessful(object sender, SuccessArgs e) { WriteToLog("Successfully updated to version " + e.Version, true); WriteToLog("Changes: ", true); WriteToLog(auBackend.Changes, true); }