private void UpdateManager_UpdateFound(object sender, UpdateFoundEventArgs e) { this.Dispatcher.Invoke(() => { IsIdle = false; }); }
private void HandleUpdateFound(object sender, UpdateFoundEventArgs args) { var dialogResult = MessageBox.Show( string.Format(_resourceManager.GetString("UpdateFoundMessageFormat"), args.Version), Text, MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (dialogResult == DialogResult.Yes) { var processStartInfo = new ProcessStartInfo { FileName = args.Uri, UseShellExecute = true, ErrorDialog = true, }; Process.Start(processStartInfo); } }
protected virtual Task?OnUpdateFound(UpdateFoundEventArgs args) => this.UpdateFound?.Invoke(args);
void engine_UpdateFound(object sender, UpdateFoundEventArgs e) { AppendLog(e.FoundTitle); }