mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-22 13:50:14 +00:00
41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
using MSFSPopoutPanelManager.Shared;
|
|
using System;
|
|
|
|
namespace MSFSPopoutPanelManager.DomainModel.Setting
|
|
{
|
|
public class ApplicationSetting : ObservableObject
|
|
{
|
|
public ApplicationSetting()
|
|
{
|
|
InitializeChildPropertyChangeBinding();
|
|
|
|
PropertyChanged += (_, e) =>
|
|
{
|
|
if (e is PropertyChangedExtendedEventArgs { ObjectName: "MSFSPopoutPanelManager.DomainModel.Setting.KeyboardShortcutSetting", PropertyName: "IsEnabled" })
|
|
OnIsUsedKeyboardShortcutChanged?.Invoke(this, KeyboardShortcutSetting.IsEnabled);
|
|
};
|
|
}
|
|
|
|
public GeneralSetting GeneralSetting { get; set; } = new();
|
|
|
|
public AutoPopOutSetting AutoPopOutSetting { get; set; } = new();
|
|
|
|
public PopOutSetting PopOutSetting { get; set; } = new();
|
|
|
|
public RefocusSetting RefocusSetting { get; set; } = new();
|
|
|
|
public TouchSetting TouchSetting { get; set; } = new();
|
|
|
|
public TrackIRSetting TrackIRSetting { get; set; } = new();
|
|
|
|
public WindowedModeSetting WindowedModeSetting { get; set; } = new();
|
|
|
|
public SystemSetting SystemSetting { get; set; } = new();
|
|
|
|
public KeyboardShortcutSetting KeyboardShortcutSetting { get; set; } = new();
|
|
|
|
public DynamicLodSetting DynamicLodSetting { get; set; } = new();
|
|
|
|
public event EventHandler<bool> OnIsUsedKeyboardShortcutChanged;
|
|
}
|
|
}
|