1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-22 05:40:11 +00:00
msfs-popout-panel-manager/DomainModel/Setting/GeneralSetting.cs

39 lines
957 B
C#
Raw Normal View History

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