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
2022-06-30 20:36:22 -04:00

37 lines
1.1 KiB
C#

using MahApps.Metro.Controls;
using MSFSPopoutPanelManager.Model;
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; }
private void TreeViewItem_Selected(object sender, RoutedEventArgs e)
{
var treeViewItem = (TreeViewItem)e.Source;
_preferencesViewModel.SectionSelectCommand.Execute(treeViewItem.Header.ToString());
}
}
}