using System; using System.Collections.Generic; namespace FileWatcher { class SystemInf { /// /// 连接字符串,用户登录的时候选择了数据库之后会使用该字符串作为连接字符串 /// public static string ConnectionString; /// /// 用户登录的时间 /// public static string LoginTime; /// /// 当前的连接数据库 /// public static string CurrentDB; /// /// 配置文件默认的数据库 /// public static string DefaultDB; /// /// 屏幕的宽度 /// public static int ScreenWidth; /// /// 屏幕的高度 /// public static int ScreenHeight; /// /// 当前岗位资源对应的Caller /// public static Dictionary> Caller = new Dictionary>(); /// /// 打开的串口的名称 /// public static List OpenPort = new List(); /// /// 检测音频是否可用 /// public static bool CheckAudioEnable = true; /// /// 导航宽度 /// public static int NavWidth = 0; /// /// HeadBar的高度 /// public static int HeadBarHeight = 0; /// /// 当前程序进程ID /// public static int ProcessesID; /// /// 是否允许打印程序 /// public static bool EnablePrint; public static string IP; /// /// 缓存数据的文件夹 /// public static string CacheFolder = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_MES\CacheFile\"; /// /// 日志文件的缓存路径 /// public static string LogFolder = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_MES\Log\"; /// /// 缓存的XML文件的路径和名称 /// public static string CacheFilePath = Environment.GetEnvironmentVariable("windir").Substring(0, 1) + @":\UAS_MES\CacheFile\CacheInfo.xml"; public static bool UpperCollection = true; public static DataHelper dh; public static Boolean OpenByNet = false; } }