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()
|
|
|
|
|
{
|
|
|
|
|
GeneralSetting = new GeneralSetting();
|
|
|
|
|
AutoPopOutSetting = new AutoPopOutSetting();
|
|
|
|
|
PopOutSetting = new PopOutSetting();
|
|
|
|
|
RefocusSetting = new RefocusSetting();
|
|
|
|
|
TouchSetting = new TouchSetting();
|
|
|
|
|
TrackIRSetting = new TrackIRSetting();
|
|
|
|
|
WindowedModeSetting = new WindowedModeSetting();
|
|
|
|
|
SystemSetting = new SystemSetting();
|
2023-08-14 19:51:28 +00:00
|
|
|
|
KeyboardShortcutSetting = new KeyboardShortcutSetting();
|
2023-07-12 22:41:31 +00:00
|
|
|
|
|
|
|
|
|
InitializeChildPropertyChangeBinding();
|
2023-08-14 19:51:28 +00:00
|
|
|
|
|
|
|
|
|
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; }
|
2023-08-14 19:51:28 +00:00
|
|
|
|
|
|
|
|
|
public KeyboardShortcutSetting KeyboardShortcutSetting { get; set; }
|
|
|
|
|
|
|
|
|
|
public event EventHandler<bool> IsUsedKeyboardShortcutChanged;
|
2023-07-12 22:41:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|