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/ApplicationSetting.cs

42 lines
1.4 KiB
C#
Raw Normal View History

2023-07-12 22:41:31 +00:00
using MSFSPopoutPanelManager.Shared;
using System;
2023-07-12 22:41:31 +00:00
namespace MSFSPopoutPanelManager.DomainModel.Setting
{
public class ApplicationSetting : ObservableObject
{
public ApplicationSetting()
{
InitializeChildPropertyChangeBinding();
2024-02-28 02:44:21 +00:00
PropertyChanged += (_, e) =>
{
2024-02-28 02:44:21 +00:00
if (e is PropertyChangedExtendedEventArgs { ObjectName: "MSFSPopoutPanelManager.DomainModel.Setting.KeyboardShortcutSetting", PropertyName: "IsEnabled" })
OnIsUsedKeyboardShortcutChanged?.Invoke(this, KeyboardShortcutSetting.IsEnabled);
};
2023-07-12 22:41:31 +00:00
}
2024-02-28 02:44:21 +00:00
public GeneralSetting GeneralSetting { get; set; } = new();
public AutoPopOutSetting AutoPopOutSetting { get; set; } = new();
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public PopOutSetting PopOutSetting { get; set; } = new();
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public RefocusSetting RefocusSetting { get; set; } = new();
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public TouchSetting TouchSetting { get; set; } = new();
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public TrackIRSetting TrackIRSetting { get; set; } = new();
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public WindowedModeSetting WindowedModeSetting { get; set; } = new();
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public SystemSetting SystemSetting { get; set; } = new();
2023-07-12 22:41:31 +00:00
2024-02-28 02:44:21 +00:00
public KeyboardShortcutSetting KeyboardShortcutSetting { get; set; } = new();
2024-02-28 02:44:21 +00:00
public DynamicLodSetting DynamicLodSetting { get; set; } = new();
2024-02-28 02:44:21 +00:00
public event EventHandler<bool> OnIsUsedKeyboardShortcutChanged;
2023-07-12 22:41:31 +00:00
}
}