Ejemplo n.º 1
0
 public BaseView()
 {
     Width               = 1280; Height = 800;
     IdCardFunc.Port     = IrAdvanced.ReadString("Port", "", "", "Communication1").ToLower();
     IdCardFunc.BeepPort = IrAdvanced.ReadString("BeepPort", "", "", "Communication1").ToLower();
     UseWriteList        = IrAdvanced.ReadBoolean("Whitelist"); //是否启用白名单验证
     UseInSession        = IrAdvanced.ReadBoolean("InSession"); //是否启用入场验证避免重复入场
     IsIdSame            = IrAdvanced.ReadBoolean("IsIdSame");  //散票的身份证号码是否验证必须与所识别身份证号码一致
     IsCheckIdNo         = IrAdvanced.ReadBoolean("IsCheckIdNo");
     IsCheckBlack        = IrAdvanced.ReadBoolean("IsCheckBlack");
     IsAudio             = IrAdvanced.ReadBoolean("IsAudio");
     CamSleep            = IrAdvanced.ReadInt("CamSleep", 100);     //摄像头刷新速率
     FaceTimeOut         = IrAdvanced.ReadInt("FaceTimeOut", 3000); //人脸识别超时时间
     FaceOutCount        = FaceTimeOut / CamSleep;
 }
Ejemplo n.º 2
0
 /// <summary>窗体初始并初始数据</summary>
 public LoginWindow()
 {
     InitializeComponent();
     //必要环境初始化
     MysqlHelper.ConnStr = string.Format("Data Source={0};Database={1};User ID=root;Password=root;SslMode=None;", IrAdvanced.ReadString("ServerIp"), IrAdvanced.ReadString("DbName"));
     FaceFun.BaseDir     = AppDomain.CurrentDomain.BaseDirectory;
     //初始化基础数据
     IrAdvanced.InitBaseData("AFT_SYSTEM");
     //是否调试状态
     Cursor = IrAdvanced.IsDebug ? Cursors.Arrow : Cursors.None;
     //是否置顶
     //Topmost = !IrAdvanced.IsDebug;
     if (IrAdvanced.ReadBoolean("UpData"))
     {
         IrAdvanced.RunApp(AppDomain.CurrentDomain.BaseDirectory + "updata.exe");
     }
 }