From 6cb154abe97cc9011ea89edfbbedfd15e5c280c8 Mon Sep 17 00:00:00 2001 From: hawkeye Date: Tue, 17 Sep 2024 17:33:23 -0400 Subject: [PATCH] Update code --- DomainModel/Profile/FloatingPanel.cs | 2 +- DomainModel/Profile/SwitchWindowConfig.cs | 12 ++++++++- MainApp/AppUserControl/ProfileCard.xaml | 2 +- MainApp/AppUserControl/ProfileCard.xaml.cs | 6 ++--- MainApp/AppWindow/SwitchWindow.xaml | 22 +--------------- MainApp/AppWindow/SwitchWindow.xaml.cs | 29 +++++++++++++++++++--- MainApp/ViewModel/ProfileCardViewModel.cs | 3 +-- MainApp/ViewModel/SwitchWindowViewModel.cs | 13 +++------- 8 files changed, 47 insertions(+), 42 deletions(-) diff --git a/DomainModel/Profile/FloatingPanel.cs b/DomainModel/Profile/FloatingPanel.cs index 8c91a7a..2a6767e 100644 --- a/DomainModel/Profile/FloatingPanel.cs +++ b/DomainModel/Profile/FloatingPanel.cs @@ -8,7 +8,7 @@ namespace MSFSPopoutPanelManager.DomainModel.Profile { public FloatingPanel() { - PropertyChanged += FloatingPanel_PropertyChanged; ; + PropertyChanged += FloatingPanel_PropertyChanged; } private void FloatingPanel_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) diff --git a/DomainModel/Profile/SwitchWindowConfig.cs b/DomainModel/Profile/SwitchWindowConfig.cs index 82d1057..cbc0aa5 100644 --- a/DomainModel/Profile/SwitchWindowConfig.cs +++ b/DomainModel/Profile/SwitchWindowConfig.cs @@ -1,9 +1,19 @@ -using MSFSPopoutPanelManager.Shared; +using System.Collections.Generic; +using MSFSPopoutPanelManager.Shared; namespace MSFSPopoutPanelManager.DomainModel.Profile { public class SwitchWindowConfig : ObservableObject { public bool IsEnabled { get; set; } = false; + + public List Panels { get; set; } + } + + public class SwitchWindowPanel + { + public string DisplayName { get; set; } + + public string PanelCaption { get; set; } } } \ No newline at end of file diff --git a/MainApp/AppUserControl/ProfileCard.xaml b/MainApp/AppUserControl/ProfileCard.xaml index 7974c6f..1e0db90 100644 --- a/MainApp/AppUserControl/ProfileCard.xaml +++ b/MainApp/AppUserControl/ProfileCard.xaml @@ -267,7 +267,7 @@ Add a virtual keyboard NumPad - + - -