mirror of
https://github.com/ckaczor/WorldClockStatusWindow.git
synced 2026-01-13 17:23:18 -05:00
36 lines
784 B
C#
36 lines
784 B
C#
using ChrisKaczor.Wpf.Application;
|
|
using System.Windows;
|
|
using WorldClockStatusWindow.Properties;
|
|
|
|
namespace WorldClockStatusWindow.SettingsWindow;
|
|
|
|
public partial class GeneralSettingsPanel
|
|
{
|
|
public GeneralSettingsPanel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public override string CategoryName => Properties.Resources.optionCategoryGeneral;
|
|
|
|
public override void LoadPanel(Window parentWindow)
|
|
{
|
|
base.LoadPanel(parentWindow);
|
|
|
|
MarkLoaded();
|
|
}
|
|
|
|
private void OnSaveSettings(object sender, RoutedEventArgs e)
|
|
{
|
|
SaveSettings();
|
|
}
|
|
|
|
private void SaveSettings()
|
|
{
|
|
if (!HasLoaded) return;
|
|
|
|
Settings.Default.Save();
|
|
|
|
Application.Current.SetStartWithWindows(Settings.Default.AutoStart);
|
|
}
|
|
} |