using Newtonsoft.Json;
using System.Collections.Generic;
//using System.Windows.Forms;
//using System.Windows.Forms;
namespace WaterDistributioinManager.Model
{
public class EncryState
{
///
/// true表示已锁定,false表示已经解锁。
///
public static bool encryLockState = false;
}
public class GlobalConfig
{
public static GlobalConfig Instance { get; set; }
///
/// 用户名
///
public string ModelFilePath { get; set; } = "";
///
/// 密码
///
public string ModelObjectID { get; set; }
///
/// 共享剪切板
///
public bool ConnectSession0 { get; set; } = false;
///
/// 共享所有磁盘
///
public bool ShareAllDisk { get; set; } = true;
///
/// 共享磁盘列表,当 ShareAllDisk = false 时使用
///
public List ShareDiskList { get; set; } = new List();
/////
///// 截图快捷键
/////
//public Keys HotKeys { get; set; } = Keys.Control | Keys.Alt | Keys.A;
/////
///// 截图快捷键
/////
//public Keys RealKeys { get; set; }
/////
///// 截图辅助键
/////
//public List ModifyKeys { get; set; }
///
/// 延时截图时间
///
public int PrintScreenDelayTime { get; set; } = 2;
public bool ISencryption { get; set; } =false;
///
/// 显示本机任务栏
///
public bool ShowTaskBar { get; set; } = false;
/////
///// 连接时自动全屏
/////
//public int MaxThread { get; set; } =1;
public string ExtJson { get; set; } = "";
private CalcExt _ext;
///
/// 计算默认配置
///
public CalcExt Ext=> _ext ?? (_ext = JsonConvert.DeserializeObject(ExtJson) ?? new CalcExt());
}
}