mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-22 05:40:11 +00:00
37 lines
1.1 KiB
C#
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());
|
|
}
|
|
}
|
|
}
|