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

52 lines
1.8 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()
{
GeneralSetting = new GeneralSetting();
AutoPopOutSetting = new AutoPopOutSetting();
PopOutSetting = new PopOutSetting();
RefocusSetting = new RefocusSetting();
TouchSetting = new TouchSetting();
TrackIRSetting = new TrackIRSetting();
WindowedModeSetting = new WindowedModeSetting();
SystemSetting = new SystemSetting();
KeyboardShortcutSetting = new KeyboardShortcutSetting();
2023-07-12 22:41:31 +00:00
InitializeChildPropertyChangeBinding();
this.PropertyChanged += (sender, e) =>
{
var evtArg = e as PropertyChangedExtendedEventArgs;
if (evtArg.ObjectName == "MSFSPopoutPanelManager.DomainModel.Setting.KeyboardShortcutSetting" && evtArg.PropertyName == "IsEnabled")
IsUsedKeyboardShortcutChanged?.Invoke(this, KeyboardShortcutSetting.IsEnabled);
};
2023-07-12 22:41:31 +00:00
}
public GeneralSetting GeneralSetting { get; set; }
public AutoPopOutSetting AutoPopOutSetting { get; set; }
public PopOutSetting PopOutSetting { get; set; }
public RefocusSetting RefocusSetting { get; set; }
public TouchSetting TouchSetting { get; set; }
public TrackIRSetting TrackIRSetting { get; set; }
public WindowedModeSetting WindowedModeSetting { get; set; }
public SystemSetting SystemSetting { get; set; }
public KeyboardShortcutSetting KeyboardShortcutSetting { get; set; }
public event EventHandler<bool> IsUsedKeyboardShortcutChanged;
2023-07-12 22:41:31 +00:00
}
}