mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-14 09:58:53 -05:00
38 lines
1.1 KiB
C#
38 lines
1.1 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 => Properties.Resources.optionCategoryUpdate;
|
|
|
|
private void HandleCheckVersionNowButtonClick(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
UpdateCheck.DisplayUpdateInformation(true);
|
|
}
|
|
}
|
|
}
|