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