From ce17e7174e7882207172ec402a011ec96b5b41d9 Mon Sep 17 00:00:00 2001 From: huangcan Date: Sun, 29 Jan 2023 15:03:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=B3=E8=81=94?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E8=8F=9C=E5=8D=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Constant/MenuTypeEnum.cs | 8 +++ Control/Other/PasswordDialog.xaml.cs | 1 + Control/UserControls/Config/ThemeControl.xaml | 14 ++++ .../PannelCard/LeftCardControl.xaml | 2 + .../PannelCard/LeftCardControl.xaml.cs | 65 ++++++++++++++++++- .../PannelCard/RightCardControl.xaml | 2 +- GeekDesk.csproj | 1 + ViewModel/AppConfig.cs | 19 ++++++ ViewModel/MenuInfo.cs | 44 +++++++++++++ 9 files changed, 154 insertions(+), 2 deletions(-) create mode 100644 Constant/MenuTypeEnum.cs diff --git a/Constant/MenuTypeEnum.cs b/Constant/MenuTypeEnum.cs new file mode 100644 index 0000000..f0c43b9 --- /dev/null +++ b/Constant/MenuTypeEnum.cs @@ -0,0 +1,8 @@ +namespace GeekDesk.Constant +{ + public enum MenuTypeEnum + { + NORMAL = 0, + RELATION_FOLDER = 1 + } +} \ No newline at end of file diff --git a/Control/Other/PasswordDialog.xaml.cs b/Control/Other/PasswordDialog.xaml.cs index c6139ac..27c2437 100644 --- a/Control/Other/PasswordDialog.xaml.cs +++ b/Control/Other/PasswordDialog.xaml.cs @@ -90,6 +90,7 @@ namespace GeekDesk.Control.Other = appData.MenuList[ MainWindow.mainWindow.LeftCard.MenuListBox.SelectedIndex ].IconList; + MainWindow.mainWindow.LeftCard.BuildWatcher(); //显示数据托盘 MainWindow.mainWindow.RightCard.WrapUFG.Visibility = Visibility.Visible; //取消加密操作 diff --git a/Control/UserControls/Config/ThemeControl.xaml b/Control/UserControls/Config/ThemeControl.xaml index 0159ffc..7114026 100644 --- a/Control/UserControls/Config/ThemeControl.xaml +++ b/Control/UserControls/Config/ThemeControl.xaml @@ -234,6 +234,20 @@