src/BandcampDownloader/UI/Dialogs/WindowMain.xaml.cs
/// <summary>
/// Displays a message if a new version is available.
/// </summary>
Displays a message if a new version is available.
Displays a message if a new version is available .
private async Task CheckForUpdates() {
            Version latestVersion;
            try {
                latestVersion = await UpdatesHelper.GetLatestVersionAsync();
            } catch (CouldNotCheckForUpdatesException) {
                labelNewVersion.Content = Properties.Resources.labelVersionError;
                return;
            }
            Version currentVersion = Assembly.GetExecutingAssembly().GetName().Version;
            if (currentVersion.CompareTo(latestVersion) < 0) {
                labelNewVersion.Content = Properties.Resources.labelVersionNewUpdateAvailable;
            }
        }
private async Task CheckForUpdates ( ) { Version latestVersion ; try { latestVersion = await UpdatesHelper . GetLatestVersionAsync ( ) ; } catch ( CouldNotCheckForUpdatesException ) { labelNewVersion . Content = Properties . Resources . labelVersionError ; return ; } Version currentVersion = Assembly . GetExecutingAssembly ( ) . GetName ( ) . Version ; if ( currentVersion . CompareTo ( latestVersion ) < 0 ) { labelNewVersion . Content = Properties . Resources . labelVersionNewUpdateAvailable ; } }
Displays a message if a new version is available.
Displays a message if a new version is available .
// The latest version is newer than the current one