private void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { ExMessageBox.Show("最新アプリケーションを更新しました、再起動してください。"); Application.Current.MainWindow.Close(); } else if (e.Error != null && e.Error is PlatformNotSupportedException) { ExMessageBox.Show("最新Silverligtバージョンを更新してください。"); blnUpdate = true; } else { if (e.Error == null) { } else { ExMessageBox.Show(e.Error.Message); } } ExBackgroundWorker.DoWork_Close(win, 2000); ExBackgroundWorker.DoWork_Focus(this.txtLoginID, 2100); }
private void OnCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.Error != null) { ActivateItem(new ErrorViewModel(e.Error.ToString())); } else if (e.UpdateAvailable) { ActivateItem(new ErrorViewModel("ping.pong has been updated to a newer version...please restart.")); } else { if (string.IsNullOrEmpty(AppBootstrapper.ConsumerKey) || string.IsNullOrEmpty(AppBootstrapper.ConsumerSecret)) { ActivateItem(new ErrorViewModel("Please create your own consumer key/secret from Twitter.")); } else { if (AppSettings.HasAuthToken) { ((IHandle <AuthenticatedMessage>) this).Handle(null); } else { ActivateItem(_viewModelFactory.AuthorizationFactory()); } } } }
private void App_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("有新版本,已下载安装. 请重新启动!"); } }
private void App_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("A new version of ChemProV is available and will be installed when you next restart the application."); } }
void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("You have to upgrade this application to the latest version in order to use it. Restart this application to upgrade automatically!"); } }
void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("Please Close This Application, Application has been Updated."); } }
void App_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("I've updated myself, please restart me!"); } }
void CheckAppForUpdates(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { // create the nofitication window API NotificationWindow notify = new NotificationWindow(); notify.Height = 74; notify.Width = 329; // creating the content to be in the window CustomNotification custom = new CustomNotification(); custom.Header = "APPLICATION UPDATED!"; custom.Text = "Application update available and downloaded, please restart."; custom.Width = notify.Width; custom.Height = notify.Height; // set the window content notify.Content = custom; // displaying the notification notify.Show(4000); // old message style //MessageBox.Show("Application has been updated, please restart application."); } }
private void App_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("A new version of Rawr has automatically been downloaded and installed! Relaunch Rawr, at your leisure, to use it!", "New version installed", MessageBoxButton.OK); } }
void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.Error == null) { if (e.UpdateAvailable) { umsg.Show("更新成功!请关闭程序重新运行!"); this.UpdateLayout(); } } }
void App_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("Application updated, you must restart it.", "Vlc.DotNet.Silverlight", MessageBoxButton.OK); } else { RootVisual = new MainPage(); } }
private void OnCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("An application update has been downloaded and " + "will be available the next time you start the " + "application."); } else if (e.Error != null) { MessageBox.Show("While checking for an application update, the " + "following message was encountered:" + Environment.NewLine + Environment.NewLine + e.Error.Message); } }
////////////////////////////////////////系统事件句柄的具体实现//////////////////////////////////////////// //检查并下载更新完成 private void OnCheckAndDownloadUpdateComplated(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable && e.Error == null) { MessageBox.Show("应用新版本已经下载成功,将在下次启动时生效。"); } else if (e.Error != null) { MessageBox.Show("在检测应用更新时, 出现以下错误信息:" + Environment.NewLine + Environment.NewLine + e.Error.Message); } }
private void OnCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { CheckAndDownloadUpdateCompleted -= new CheckAndDownloadUpdateCompletedEventHandler(OnCheckAndDownloadUpdateCompleted); //detach event handler if (e.UpdateAvailable) //update was found and downloaded { InfoMessage("Update downloaded, will use at next launch"); } else if (e.Error != null) //error during update process { ErrorMessage("Update failed", e.Error); } }
void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { this.btnLogin.IsEnabled = false; MessageBox.Show("AgileEAS.NET SOA平台已经下载并更新了最新版本,请您退出后重新运行AgileEAS.NET SOA平台。"); } else if ((e.Error != null) && (e.Error is PlatformNotSupportedException)) { this.btnLogin.IsEnabled = false; MessageBox.Show("AgileEAS.NET SOA平台已经发布了新版本,但运行新版本需要更新您的Silverlight插件。\r\n请您登录 http://smarteas.net 以安装最新的运行环境。"); } }
private void OnCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { CheckAndDownloadUpdateCompleted -= OnCheckAndDownloadUpdateCompleted; //detach event handler if (e.UpdateAvailable) //update was found and downloaded { MessageDialog.Show("", ClipFlairStudioStrings.MsgUpdateDownloaded); } else if (e.Error != null) //error during update process { ErrorDialog.Show(ClipFlairStudioStrings.MsgUpdateFailed, e.Error); } }
void Application_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (m_isFirstCheck) { ProcessWhenCompleted(e); } else { Deployment.Current.Dispatcher.BeginInvoke(() => { var box = new UpdateWindow(m_xapVersionList); box.ShowWindow(); }); } }
private static void CurrentCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("已成功下载应用程序的新版本并将启动现有应用程序,重新启动时使用此新版本。", "系统提示", MessageBoxButton.OK); Current.MainWindow.Close(); } if (e.Error != null) { var msg = "下载应用程序的新版本失败!请确定网络连接正常,或者在浏览器内打开应用程序。"; msg += "\r\n详细错误信息:" + e.Error.Message; MessageBox.Show(msg, "警告", MessageBoxButton.OK); } }
private void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("LightBus微博应用新版本已经下载成功,将在下次启动时生效。"); } else if (e.Error != null && e.Error is PlatformNotSupportedException) { MessageBox.Show("在检测应用更新时出现以下错误信息:" + Environment.NewLine + e.Error.Message); } else { MessageBox.Show("LightBus微博应用是最新版本,无须更新。"); } }
private void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("Установлена новая версия. Перезапустите приложение."); App.Current.MainWindow.Close(); } else if (e.Error != null && e.Error is PlatformNotSupportedException) { MessageBox.Show("Есть новые версии приложения" + "однако для их применения необходима новая версия Silverlight. " + "Посетите сайт http://silverlight.net для обновления Silverlight."); App.Current.MainWindow.Close(); } }
private void App_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { AutoUpdateWorked = true; MessageBox.Show("A new version of Rawr has automatically been downloaded and installed! Relaunch Rawr, at your leisure, to use it!", "New version installed", MessageBoxButton.OK); } else { AutoUpdateWorked = false; Rawr4ArmoryService versionChecker = new Rawr4ArmoryService(true); versionChecker.GetVersionCompleted += new EventHandler <EventArgs <string> >(_timerCheckForUpdates_Callback); versionChecker.GetVersionAsync(); } }
private static void OnCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("An application update has been downloaded. " + "Restart the application to run the new version."); } else if (e.Error != null) { MessageBox.Show( "An application update is available, but an error has occurred.\n" + "This can happen, for example, when the update requires\n" + "a new version of Silverlight or requires elevated trust.\n" + "To install the update, visit the application home page."); } }
void app_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.Error != null) { MessageBox.Show("Oh noes! " + e.Error.Message); } else if (e.UpdateAvailable) { MessageBox.Show("An update was available and downloaded."); } else { MessageBox.Show("No update was available."); } this.UpdateUI(); }
private void OnCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable && e.Error == null) { MessageBox.Show("检测到有新版本要更新,重启后生效。"); Application.Current.MainWindow.Close(); } else if (e.Error != null) { MessageBox.Show("在检测应用更新时, 在" + "出现以下错误信息:" + Environment.NewLine + Environment.NewLine + e.Error.Message); } }
private void OnApplicationCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.Error != null) { if (e.Error is PlatformNotSupportedException) { MessageBox.Show("An application update is available, but it requires the latest version of Silverlight."); } //else if (Debugger.IsAttached) //{ // Debugger.Break(); //} } else if (e.UpdateAvailable) { MessageBox.Show("An application update was downloaded. Restart the application to run the latest version."); } }
void Current_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("An application update has been downloaded. " + "Restart the application to run the new version."); } else if (e.Error != null && e.Error is PlatformNotSupportedException) { MessageBox.Show("An application update is available, " + "but it requires a new version of Silverlight. " + "Visit the application home page to upgrade."); } else { //no new version available } }
private void App_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("L'applicazione è stata aggiornata, riavviarla per eseguire la nuova versione"); } else if (e.Error != null) { MessageBox.Show( "E' disponibile un aggiornamento ma non è stato possibile scaricarlo:\n" + e.Error + Environment.NewLine + "Visita la home page dell'applicazione."); } else { MessageBox.Show("Nessun aggiornamento disponibile."); } }
private void OnCheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs args) { var shell = IoC.Get <IShell>(); // http://nerddawg.blogspot.com/2009/07/silverlight-out-of-browser-apps-how.html if (args.UpdateAvailable) { shell.Dialogs.ShowMessageBox(Resources.Strings.ScreensBootstrapper_Update_Notification_Message, Resources.Strings.ScreensBootstrapper_Update_Notification_Title); //MessageBox.Show("Application updated, please restart to apply changes."); } else if (args.Error != null && args.Error is PlatformNotSupportedException) { shell.Dialogs.ShowMessageBox( Resources.Strings.ScreensBootstrapper_Update_Notification_Error); } //else - there is no update available. }
private void Application_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("A new version has been installed. Please restart the application."); Application.Current.MainWindow.Close(); } else if (e.Error != null) { if (e.Error is PlatformNotSupportedException) { MessageBox.Show("An application update is available, " + "but it requires a new version of Silverlight. " + "Visit http://silverlight.net to upgrade."); } else { MessageBox.Show("An application update is available, " + "but it cannot be installed. Please remove the current version " + "before installing the new version."); } } }
private void Application_CheckAndDownloadUpdateCompleted(object sender, CheckAndDownloadUpdateCompletedEventArgs e) { if (e.UpdateAvailable) { MessageBox.Show("A new version has been installed. Please restart the application."); // (You could add code here to call a custom method in MainPage // to disable the user interface.) } else if (e.Error != null) { if (e.Error is PlatformNotSupportedException) { MessageBox.Show("An application update is available, " + "but it requires a new version of Silverlight. " + "Visit http://silverlight.net to upgrade."); } else { MessageBox.Show("An application update is available, " + "but it cannot be installed. Please remove the current version " + "before installing the new version."); } } }