private void Updater_UpdateAvailable(object sender, UpdateAvailableArgs e) { UpdateText = string.Format(Application.Current.Resources["String_VersionxxAvailable"] as string, e.Version); IsUpdateCheckRunning = false; UpdateAvailable = true; }
private void Updater_UpdateAvailable(object sender, UpdateAvailableArgs e) { UpdateText = string.Format(LocalizationManager.GetStringByKey("String_VersionxxAvailable"), e.Version); IsUpdateCheckRunning = false; UpdateAvailable = true; }
private void updates_UpdateAvailable(object o, UpdateAvailableArgs e) { this.BeginInvoke(new Action(() => { showMainForm(); DialogResult dr = MessageBox.Show(this, String.Format("Version v{0} is available for download. Would you like to update?", e.Version), "Shrew VPN Reconnect - Update Available!", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (dr == System.Windows.Forms.DialogResult.Yes) { UpdateChecker.InitLatestDownload(); } })); }
private async void OnUpdateAvailable(object sender, UpdateAvailableArgs e) { var version = e.NewVersion; var result = Utils.ShowInfo("Update available", string.Format("Scraps {0} is available to download.\n\nWould you like to download and run the installer?", version), MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { _UpdateProgressBar.Style = ProgressBarStyle.Continuous; await _updater.DownloadUpdateAsync(); } else { Close(); } }
private void OnUpdateAvailable(object sender, UpdateAvailableArgs e) { UpdateAvailable?.Invoke(sender, e); }
private void Updater_UpdateAvailable(object sender, UpdateAvailableArgs e) { UpdateText = string.Format(System.Windows.Application.Current.Resources["String_VersionxxAvailable"] as string, e.Version); UpdateAvailable = true; }