1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-25 15:20:10 +00:00
msfs-popout-panel-manager/WpfApp/PreferencesDialog.xaml.cs
Stanley 43caff1ca9 Squashed commit of the following:
commit 2bbda3c4e4969fdf05566908fde01f1c9e4e23f7
Author: Stanley <hawkeyesk@outlook.com>
Date:   Mon Sep 5 23:54:39 2022 -0400

    Added in-game panel support

commit ec29b0ec2612b10e45ab9a73c10b88a98fcf6eaf
Author: Stanley <hawkeyesk@outlook.com>
Date:   Sun Sep 4 21:21:37 2022 -0400

    Added in-game panel support

commit 97edc184f349e1fde74a15a643fb90fb9bd90395
Author: Stanley <hawkeyesk@outlook.com>
Date:   Thu Sep 1 18:08:44 2022 -0400

    Update touch panel

commit da48ca0a272290466952c5c1bd1ca035d56f930c
Author: Stanley <hawkeyesk@outlook.com>
Date:   Mon Aug 29 22:19:38 2022 -0400

    Added pop out panel temporary display

commit 701346193804f93616b0e6e2222d9d55223f516f
Author: Stanley <hawkeyesk@outlook.com>
Date:   Wed Aug 24 10:33:59 2022 -0400

    Added auto resize window display mode

commit 98cbcd949f1555b44db22267ce5c54858bef47cd
Author: Stanley <hawkeyesk@outlook.com>
Date:   Wed Aug 24 09:39:38 2022 -0400

    Added auto resize window display mode
2022-09-06 00:07:03 -04:00

45 lines
1.3 KiB
C#

using MahApps.Metro.Controls;
using MSFSPopoutPanelManager.UserDataAgent;
using MSFSPopoutPanelManager.WpfApp.ViewModel;
using System.Windows;
using System.Windows.Controls;
namespace MSFSPopoutPanelManager.WpfApp
{
public partial class PreferencesDialog : MetroWindow
{
private PreferencesViewModel _preferencesViewModel;
public PreferencesDialog(PreferencesViewModel preferencesViewModel)
{
_preferencesViewModel = preferencesViewModel;
InitializeComponent();
this.DataContext = preferencesViewModel;
_preferencesViewModel.Window = this;
}
public AppSetting AppSetting { get; set; }
public bool ApplicationSettingsVisible { get; set; }
public bool PopOutSettingsVisible { get; set; }
public bool AutoPopOutSettingsVisible { get; set; }
public bool TrackIRSettingsVisible { get; set; }
public bool TouchSettingsVisible { get; set; }
public bool MSFSTouchPanelSettingsVisible { get; set; }
public bool WindowModeSettingsVisible { get; set; }
private void TreeViewItem_Selected(object sender, RoutedEventArgs e)
{
var treeViewItem = (TreeViewItem)e.Source;
_preferencesViewModel.SectionSelectCommand.Execute(treeViewItem.Header.ToString());
}
}
}