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

@@ -16,7 +16,7 @@ namespace FeedCenter.Options
applicationNameLabel.Text = Properties.Resources.ApplicationDisplayName;
string version = UpdateCheck.CurrentVersion.ToString();
string version = UpdateCheck.LocalVersion.ToString();
versionLabel.Text = string.Format(Properties.Resources.Version, version);
companyLabel.Text = ((AssemblyCompanyAttribute) Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false)[0]).Company;

View File

@@ -1,4 +1,6 @@
namespace FeedCenter.Options
using Common.Update;
namespace FeedCenter.Options
{
public partial class UpdateOptionsPanel
{
@@ -32,7 +34,7 @@
private void HandleCheckVersionNowButtonClick(object sender, System.Windows.RoutedEventArgs e)
{
VersionCheck.DisplayUpdateInformation(true);
UpdateCheck.DisplayUpdateInformation(true);
}
}
}