diff --git a/App.config b/App.config index 617ade3..2a204ef 100644 --- a/App.config +++ b/App.config @@ -19,13 +19,14 @@ - + + @@ -46,17 +47,21 @@ + + + + - + - + - + diff --git a/App.xaml b/App.xaml index 1e6f819..4042ddb 100644 --- a/App.xaml +++ b/App.xaml @@ -13,6 +13,8 @@ + + diff --git a/Constant/Constants.cs b/Constant/Constants.cs index 18889d7..544262d 100644 --- a/Constant/Constants.cs +++ b/Constant/Constants.cs @@ -13,14 +13,22 @@ namespace GeekDesk.Constant public static string MY_NAME = DEV ? "GeekDesk-D" : "GeekDesk"; + /// /// app数据文件路径 /// 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 PW_FILE_BAK_PATH = APP_DIR + "bak\\pw.txt"; //密码文件路径 + + 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/Constant/PasswordType.cs b/Constant/PasswordType.cs new file mode 100644 index 0000000..3c97bc8 --- /dev/null +++ b/Constant/PasswordType.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace GeekDesk.Constant +{ + public enum PasswordType + { + INPUT = 0, //键入密码 + CREATE = 1, //新建密码 + ALTER = 2, //修改密码 + CANCEL = 3, //取消密码 + } +} diff --git a/Constant/RunTimeStatus.cs b/Constant/RunTimeStatus.cs index ba82f5a..82df63b 100644 --- a/Constant/RunTimeStatus.cs +++ b/Constant/RunTimeStatus.cs @@ -20,7 +20,25 @@ public static bool LOCK_APP_PANEL = false; + /// + /// 是否弹出了菜单密码框 + /// + public static bool SHOW_MENU_PASSWORDBOX = false; + /// + /// 是否弹出了右键菜单 + /// + public static bool SHOW_RIGHT_BTN_MENU = false; + + /// + /// 是否点击了面板功能按钮 + /// + public static bool APP_BTN_IS_DOWN = false; + + /// + /// 是否正在编辑菜单 + /// + public static bool IS_MENU_EDIT = false; } } 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 @@ + + + + + + + + + + + + + + + + + + + + + +