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 @@ + + + + + + + + + + + + + + + + + + + + + +