1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2025-02-16 16:34:28 +01:00
msfs-popout-panel-manager/DomainModel/Setting/GeneralSetting.cs

39 lines
957 B
C#
Raw Normal View History

2023-07-13 00:41:31 +02:00
using MSFSPopoutPanelManager.Shared;
using Newtonsoft.Json;
namespace MSFSPopoutPanelManager.DomainModel.Setting
{
public class GeneralSetting : ObservableObject
{
public GeneralSetting()
{
InitializeChildPropertyChangeBinding();
}
2024-02-28 03:44:21 +01:00
public bool AlwaysOnTop { get; set; } = true;
2023-07-13 00:41:31 +02:00
2024-02-28 03:44:21 +01:00
public bool AutoClose { get; set; } = true;
2023-07-13 00:41:31 +02:00
2024-02-28 03:44:21 +01:00
public bool MinimizeToTray { get; set; } = false;
2023-07-13 00:41:31 +02:00
2024-02-28 03:44:21 +01:00
public bool StartMinimized { get; set; } = false;
2023-07-13 00:41:31 +02:00
2024-02-28 03:44:21 +01:00
public bool CheckForUpdate { get; set; } = true;
2023-07-13 00:41:31 +02:00
2024-02-28 03:44:21 +01:00
public bool TurboMode { get; set; } = false;
2023-09-29 08:15:02 +02:00
2023-07-13 00:41:31 +02:00
[JsonIgnore, IgnorePropertyChanged]
public bool AutoStart
{
2024-02-28 03:44:21 +01:00
get => AppAutoStart.CheckIsAutoStart();
2023-07-13 00:41:31 +02:00
set
{
if (value)
AppAutoStart.Activate();
else
AppAutoStart.Deactivate();
}
}
}
}