mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-28 16:50:11 +00:00
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
|
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;
|
|||
|
|
|||
|
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; }
|
|||
|
|
|||
|
[JsonIgnore, IgnorePropertyChanged]
|
|||
|
public bool AutoStart
|
|||
|
{
|
|||
|
get
|
|||
|
{
|
|||
|
return AppAutoStart.CheckIsAutoStart();
|
|||
|
}
|
|||
|
set
|
|||
|
{
|
|||
|
if (value)
|
|||
|
AppAutoStart.Activate();
|
|||
|
else
|
|||
|
AppAutoStart.Deactivate();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|