Move update message logic to common and remove restarting on update (installer will do that)

This commit is contained in:
2014-11-22 09:14:48 -05:00
parent fba778679b
commit 4ea3f81b4d
8 changed files with 71 additions and 224 deletions

View File

@@ -49,7 +49,7 @@ namespace FeedCenter
_dispatcher = Dispatcher.CurrentDispatcher;
// Get the version to display
string version = UpdateCheck.CurrentVersion.ToString();
string version = UpdateCheck.LocalVersion.ToString();
// Show the version
lblVersion.Content = string.Format(Properties.Resources.Version, version);
@@ -198,7 +198,7 @@ namespace FeedCenter
return false;
// Return if the check worked and an update is available
return UpdateCheck.CheckForUpdate(Settings.Default.VersionLocation, Settings.Default.VersionFile) && UpdateCheck.UpdateAvailable;
return UpdateCheck.CheckForUpdate() && UpdateCheck.UpdateAvailable;
}
private static bool CheckDatabase()