private void AutoUpdater_CheckForUpdateEvent(UpdateInfoEventArgs args)
 {
     if (args != null && args.IsUpdateAvailable)
     {
         UpdateWindow window = new UpdateWindow(args);
         window.Show();
     }
 }
示例#2
0
        private async Task CheckForUpdates()
        {
            this.currentUpdate = await ChannelSession.Services.MixItUpService.GetLatestUpdate();

            if (this.currentUpdate != null && this.currentUpdate.SystemVersion > Assembly.GetEntryAssembly().GetName().Version)
            {
                updateFound = true;
                UpdateWindow window = new UpdateWindow(this.currentUpdate);
                window.Show();
            }
        }
示例#3
0
        private async Task CheckForUpdates()
        {
            this.currentUpdate = await ChannelSession.Services.MixItUpService.GetLatestUpdate();

            if (this.currentUpdate != null)
            {
                if (App.AppSettings.PreviewProgram)
                {
                    MixItUpUpdateModel previewUpdate = await ChannelSession.Services.MixItUpService.GetLatestPreviewUpdate();

                    if (previewUpdate != null && previewUpdate.SystemVersion >= this.currentUpdate.SystemVersion)
                    {
                        this.currentUpdate = previewUpdate;
                    }
                }

                if (this.currentUpdate.SystemVersion > Assembly.GetEntryAssembly().GetName().Version)
                {
                    updateFound = true;
                    UpdateWindow window = new UpdateWindow(this.currentUpdate);
                    window.Show();
                }
            }
        }