1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-22 05:40:11 +00:00
msfs-popout-panel-manager/WpfApp/PreferencesDialog.xaml.cs
2022-07-23 15:23:32 -04:00

41 lines
1.2 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;
}
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; }
private void TreeViewItem_Selected(object sender, RoutedEventArgs e)
{
var treeViewItem = (TreeViewItem)e.Source;
_preferencesViewModel.SectionSelectCommand.Execute(treeViewItem.Header.ToString());
}
}
}