From e42f2c3c73e4f245a5f6cf6d636564392fc1a4ba Mon Sep 17 00:00:00 2001 From: liufei Date: Fri, 3 Jun 2022 22:04:10 +0800 Subject: [PATCH] =?UTF-8?q?:ambulance:=20=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=E5=92=8C=E8=87=AA=E5=8A=A8=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20=E7=AB=AF=E5=8D=88=E8=8A=82=E5=BF=AB?= =?UTF-8?q?=E4=B9=90=20:tada:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.config | 3 +- Constant/Constants.cs | 9 +- Control/Other/BacklogNotificatin.xaml.cs | 2 +- Control/Other/GlobalMsgNotification.xaml | 54 ++++++++++++ Control/Other/GlobalMsgNotification.xaml.cs | 61 ++++++++++++++ Control/Other/IconInfoDialog.xaml.cs | 9 +- Control/Other/IconInfoUrlDialog.xaml.cs | 6 +- Control/UserControls/Config/OtherControl.xaml | 10 +++ .../UserControls/Config/OtherControl.xaml.cs | 5 ++ .../PannelCard/RightCardControl.xaml.cs | 2 +- .../SystemItem/SystemItem.xaml.cs | 2 +- Control/UserControls/ToDo/TodoControl.xaml.cs | 5 +- Control/Windows/ToDoInfoWindow.xaml.cs | 2 +- GeekDesk.csproj | 16 ++++ MainWindow.xaml | 4 +- MainWindow.xaml.cs | 61 +++++++++----- Util/CommonCode.cs | 83 +++++++++++++++++-- ViewModel/AppConfig.cs | 15 +++- ViewModel/AppData.cs | 5 +- ViewModel/GradientBGParam.cs | 5 +- ViewModel/IconInfo.cs | 2 +- ViewModel/MenuInfo.cs | 2 +- ViewModel/ToDoInfo.cs | 2 +- 23 files changed, 311 insertions(+), 54 deletions(-) create mode 100644 Control/Other/GlobalMsgNotification.xaml create mode 100644 Control/Other/GlobalMsgNotification.xaml.cs diff --git a/App.config b/App.config index 2ce48cf..fe810b1 100644 --- a/App.config +++ b/App.config @@ -19,13 +19,14 @@ - + + diff --git a/Constant/Constants.cs b/Constant/Constants.cs index 18889d7..3eb6edb 100644 --- a/Constant/Constants.cs +++ b/Constant/Constants.cs @@ -18,9 +18,14 @@ namespace GeekDesk.Constant /// public static string DATA_FILE_PATH = APP_DIR + "Data"; //app数据文件路径 - public static string LOG_FILE_PATH = APP_DIR + "Log.log"; + /// + /// 备份文件路径 + /// + public static string DATA_FILE_BAK_PATH = APP_DIR + "bak\\Data.bak"; //app数据文件路径 - public static string ERROR_FILE_PATH = APP_DIR + "Error.log"; + public static string LOG_FILE_PATH = APP_DIR + "logs\\log.log"; + + public static string ERROR_FILE_PATH = APP_DIR + "logs\\error.log"; public static int SHADOW_WIDTH = 20; diff --git a/Control/Other/BacklogNotificatin.xaml.cs b/Control/Other/BacklogNotificatin.xaml.cs index 28b64c9..46fc210 100644 --- a/Control/Other/BacklogNotificatin.xaml.cs +++ b/Control/Other/BacklogNotificatin.xaml.cs @@ -62,7 +62,7 @@ namespace GeekDesk.Control.Other } ToDoTask.activityBacklog[info].Close(); //关闭桌面通知 ToDoTask.activityBacklog.Remove(info);//激活任务删除 - CommonCode.SaveAppData(appData); + CommonCode.SaveAppData(appData, Constants.DATA_FILE_PATH); } diff --git a/Control/Other/GlobalMsgNotification.xaml b/Control/Other/GlobalMsgNotification.xaml new file mode 100644 index 0000000..c421ea3 --- /dev/null +++ b/Control/Other/GlobalMsgNotification.xaml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + +