qin
2024-06-04 9490957edfc694a0378ee52af47e921b8ac44e7a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
using Newtonsoft.Json;
using System.Collections.Generic;
//using System.Windows.Forms;
//using System.Windows.Forms;
 
namespace WaterDistributioinManager.Model
{
 
 
    public class EncryState
    {
        /// <summary>
        /// true表示已锁定,false表示已经解锁。
        /// </summary>
        public static bool encryLockState = false;
 
    }
    public class GlobalConfig
    {
 
 
        public static GlobalConfig Instance { get; set; }
      
 
        /// <summary>
        /// 用户名
        /// </summary>
        public string ModelFilePath { get; set; } = "";
 
        /// <summary>
        /// 密码
        /// </summary>
        public string ModelObjectID { get; set; }
 
        /// <summary>
        /// 共享剪切板
        /// </summary>
        public bool ConnectSession0 { get; set; } = false;
 
        /// <summary>
        /// 共享所有磁盘
        /// </summary>
        public bool ShareAllDisk { get; set; } = true;
 
        /// <summary>
        /// 共享磁盘列表,当 ShareAllDisk = false 时使用
        /// </summary>
        public List<string> ShareDiskList { get; set; } = new List<string>();
 
 
        ///// <summary>
        ///// 截图快捷键
        ///// </summary>
        //public Keys HotKeys { get; set; } = Keys.Control | Keys.Alt | Keys.A;
 
        ///// <summary>
        ///// 截图快捷键
        ///// </summary>
        //public Keys RealKeys { get; set; }
 
        ///// <summary>
        ///// 截图辅助键
        ///// </summary>
        //public List<Keys> ModifyKeys { get; set; }
 
        /// <summary>
        /// 延时截图时间
        /// </summary>
        public int PrintScreenDelayTime { get; set; } = 2;
 
 
        public bool ISencryption { get; set; } =false;
 
        /// <summary>
        /// 显示本机任务栏
        /// </summary>
        public bool ShowTaskBar { get; set; } = false;
 
        ///// <summary>
        ///// 连接时自动全屏
        ///// </summary>
        //public int MaxThread { get; set; } =1;
 
        public string ExtJson { get; set; } = "";
        private CalcExt _ext;
        /// <summary>
        /// 计算默认配置
        /// </summary>
        public CalcExt Ext=> _ext ?? (_ext = JsonConvert.DeserializeObject<CalcExt>(ExtJson) ?? new CalcExt());
 
 
 
       
 
    }
}