mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-23 01:25:38 -05:00
More modernization
- Split generic "common" libraries into specific libraries - Use other packages in lieu of custom code - General cleanup
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Common.Update;
|
||||
using CKaczor.ApplicationUpdate;
|
||||
using FeedCenter.Properties;
|
||||
using System.Windows;
|
||||
|
||||
@@ -8,12 +8,13 @@ namespace FeedCenter
|
||||
{
|
||||
private static void InitializeUpdate()
|
||||
{
|
||||
UpdateCheck.ApplicationName = Properties.Resources.ApplicationDisplayName;
|
||||
UpdateCheck.UpdateServerType = ServerType.GitHub;
|
||||
UpdateCheck.UpdateServer = Settings.Default.VersionLocation;
|
||||
UpdateCheck.ApplicationShutdown = ApplicationShutdown;
|
||||
UpdateCheck.ApplicationCurrentMessage = ApplicationCurrentMessage;
|
||||
UpdateCheck.ApplicationUpdateMessage = ApplicationUpdateMessage;
|
||||
UpdateCheck.Initialize(ServerType.GitHub,
|
||||
Settings.Default.VersionLocation,
|
||||
string.Empty,
|
||||
Properties.Resources.ApplicationDisplayName,
|
||||
ApplicationShutdown,
|
||||
ApplicationCurrentMessage,
|
||||
ApplicationUpdateMessage);
|
||||
}
|
||||
|
||||
private static bool ApplicationUpdateMessage(string title, string message)
|
||||
@@ -33,8 +34,7 @@ namespace FeedCenter
|
||||
|
||||
private void HandleNewVersionLinkClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
// Display update information
|
||||
UpdateCheck.DisplayUpdateInformation(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user