Microsoft.HockeyApp.UpdateManager.ShowUpdateNotification C# (CSharp) Method

ShowUpdateNotification() protected method

protected ShowUpdateNotification ( System.Version currentVersion, IEnumerable appVersions, UpdateCheckSettings updateCheckSettings ) : void
currentVersion System.Version
appVersions IEnumerable
updateCheckSettings UpdateCheckSettings
return void
        protected void ShowUpdateNotification(Version currentVersion, IEnumerable<IAppVersion> appVersions, UpdateCheckSettings updateCheckSettings)
        {
            Scheduler.Dispatcher.Schedule(() =>
            {
                NotificationTool.Show(
                    LocalizedStrings.LocalizedResources.UpdateNotification,
                    LocalizedStrings.LocalizedResources.UpdateAvailable,
                    new NotificationAction(LocalizedStrings.LocalizedResources.Show, (Action) (() =>
                    {
                        ShowVersionPopup(currentVersion, appVersions, updateCheckSettings);
                    })),
                    new NotificationAction(LocalizedStrings.LocalizedResources.Dismiss, (Action) (() =>
                    {
                        //DO nothing
                    }))
                );
            });
        }