2023-07-12 22:41:31 +00:00
|
|
|
|
using MSFSPopoutPanelManager.Shared;
|
2023-08-14 19:51:28 +00:00
|
|
|
|
using System;
|
2023-07-12 22:41:31 +00:00
|
|
|
|
|
|
|
|
|
namespace MSFSPopoutPanelManager.DomainModel.Setting
|
|
|
|
|
{
|
|
|
|
|
public class ApplicationSetting : ObservableObject
|
|
|
|
|
{
|
|
|
|
|
public ApplicationSetting()
|
|
|
|
|
{
|
|
|
|
|
InitializeChildPropertyChangeBinding();
|
2023-08-14 19:51:28 +00:00
|
|
|
|
|
2024-02-28 02:44:21 +00:00
|
|
|
|
PropertyChanged += (_, e) =>
|
2023-08-14 19:51:28 +00:00
|
|
|
|
{
|
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-08-14 19:51:28 +00:00
|
|
|
|
};
|
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();
|
2023-08-14 19:51:28 +00:00
|
|
|
|
|
2024-02-28 02:44:21 +00:00
|
|
|
|
public DynamicLodSetting DynamicLodSetting { get; set; } = new();
|
2023-08-14 19:51:28 +00:00
|
|
|
|
|
2024-02-28 02:44:21 +00:00
|
|
|
|
public event EventHandler<bool> OnIsUsedKeyboardShortcutChanged;
|
2023-07-12 22:41:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|