mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-03 17:24:24 -05:00
More ReSharper suggestions
This commit is contained in:
@@ -16,8 +16,7 @@ namespace FeedCenter.Options
|
||||
|
||||
var settings = Properties.Settings.Default;
|
||||
|
||||
startWithWindowsCheckBox.IsChecked = settings.StartWithWindows;
|
||||
registerAsDefaultFeedReaderCheckBox.IsChecked = settings.RegisterAsDefaultFeedReader;
|
||||
StartWithWindowsCheckBox.IsChecked = settings.StartWithWindows;
|
||||
}
|
||||
|
||||
public override bool ValidatePanel()
|
||||
@@ -29,21 +28,12 @@ namespace FeedCenter.Options
|
||||
{
|
||||
var settings = Properties.Settings.Default;
|
||||
|
||||
if (startWithWindowsCheckBox.IsChecked.HasValue && settings.StartWithWindows != startWithWindowsCheckBox.IsChecked.Value)
|
||||
settings.StartWithWindows = startWithWindowsCheckBox.IsChecked.Value;
|
||||
|
||||
if (registerAsDefaultFeedReaderCheckBox.IsChecked.HasValue && settings.RegisterAsDefaultFeedReader != registerAsDefaultFeedReaderCheckBox.IsChecked.Value)
|
||||
settings.RegisterAsDefaultFeedReader = registerAsDefaultFeedReaderCheckBox.IsChecked.Value;
|
||||
if (StartWithWindowsCheckBox.IsChecked.HasValue && settings.StartWithWindows != StartWithWindowsCheckBox.IsChecked.Value)
|
||||
settings.StartWithWindows = StartWithWindowsCheckBox.IsChecked.Value;
|
||||
|
||||
Application.Current.SetStartWithWindows(settings.StartWithWindows);
|
||||
|
||||
if (settings.RegisterAsDefaultFeedReader)
|
||||
SystemConfiguration.SetDefaultFeedReader();
|
||||
}
|
||||
|
||||
public override string CategoryName
|
||||
{
|
||||
get { return Properties.Resources.optionCategoryGeneral; }
|
||||
}
|
||||
public override string CategoryName => Properties.Resources.optionCategoryGeneral;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user