Files
FeedCenter/Application/Options/GeneralOptionsPanel.xaml.cs

36 lines
806 B
C#

using ChrisKaczor.Wpf.Application;
using FeedCenter.Properties;
using System.Windows;
namespace FeedCenter.Options;
public partial class GeneralOptionsPanel
{
public GeneralOptionsPanel(Window parentWindow, FeedCenterEntities entities) : base(parentWindow, entities)
{
InitializeComponent();
}
public override string CategoryName => Properties.Resources.optionCategoryGeneral;
public override void LoadPanel()
{
base.LoadPanel();
MarkLoaded();
}
private void OnSaveSettings(object sender, RoutedEventArgs e)
{
SaveSettings();
}
private void SaveSettings()
{
if (!HasLoaded) return;
Settings.Default.Save();
Application.Current.SetStartWithWindows(Settings.Default.StartWithWindows);
}
}