1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/DomainModel/Setting/GeneralSetting.cs
2024-02-27 21:44:21 -05:00

38 lines
957 B
C#

using MSFSPopoutPanelManager.Shared;
using Newtonsoft.Json;
namespace MSFSPopoutPanelManager.DomainModel.Setting
{
public class GeneralSetting : ObservableObject
{
public GeneralSetting()
{
InitializeChildPropertyChangeBinding();
}
public bool AlwaysOnTop { get; set; } = true;
public bool AutoClose { get; set; } = true;
public bool MinimizeToTray { get; set; } = false;
public bool StartMinimized { get; set; } = false;
public bool CheckForUpdate { get; set; } = true;
public bool TurboMode { get; set; } = false;
[JsonIgnore, IgnorePropertyChanged]
public bool AutoStart
{
get => AppAutoStart.CheckIsAutoStart();
set
{
if (value)
AppAutoStart.Activate();
else
AppAutoStart.Deactivate();
}
}
}
}