mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-14 01:25:38 -05:00
36 lines
806 B
C#
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);
|
|
}
|
|
} |