mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-13 17:22:48 -05:00
41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using Common.Update;
|
|
|
|
namespace FeedCenter.Options
|
|
{
|
|
public partial class UpdateOptionsPanel
|
|
{
|
|
public UpdateOptionsPanel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public override void LoadPanel(FeedCenterEntities database)
|
|
{
|
|
base.LoadPanel(database);
|
|
|
|
checkVersionOnStartupCheckBox.IsChecked = Properties.Settings.Default.CheckVersionAtStartup;
|
|
}
|
|
|
|
public override bool ValidatePanel()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public override void SavePanel()
|
|
{
|
|
if (checkVersionOnStartupCheckBox.IsChecked.HasValue && Properties.Settings.Default.CheckVersionAtStartup != checkVersionOnStartupCheckBox.IsChecked.Value)
|
|
Properties.Settings.Default.CheckVersionAtStartup = checkVersionOnStartupCheckBox.IsChecked.Value;
|
|
}
|
|
|
|
public override string CategoryName
|
|
{
|
|
get { return Properties.Resources.optionCategoryUpdate; }
|
|
}
|
|
|
|
private void HandleCheckVersionNowButtonClick(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
UpdateCheck.DisplayUpdateInformation(true);
|
|
}
|
|
}
|
|
}
|