1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2025-02-16 16:34:28 +01:00
msfs-popout-panel-manager/DomainModel/Setting/ApplicationSetting.cs

42 lines
1.4 KiB
C#
Raw Normal View History

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