Exemplo n.º 1
0
 public override void Init()
 {
     base.Init();
     CameraPic1.Visibility = Visibility.Visible;
     Title.Text            = MyMatch.SessionName;
     "身份证+人脸识别+散票验证模式".ToSaveLog("【调用模式】:");
     _irSeialPort = new IrSerialPort(IrAdvanced.ReadString("BarCodePort"));
     _irSeialPort.DataReceived += irSeialPort_DataReceived;
     _irSeialPort.ErrorEvent   += (sender, e) => ShowEventMsg(e, MsgType.TipErr);
 }
Exemplo n.º 2
0
 public override void Init()
 {
     try
     {
         #region 2019年3月屏蔽检查模块
         //base.Init();
         #endregion
         Title.Text = MyMatch.SessionName;
         "散票验证模式".ToSaveLog("【调用模式】:");
         _irSeialPort = new IrSerialPort(IrAdvanced.ReadString("BarCodePort"));
         _irSeialPort.DataReceived += irSeialPort_DataReceived;
         _irSeialPort.ErrorEvent   += (sender, e) => ShowEventMsg(e, MsgType.TipErr);
     }
     catch (Exception ex)
     {
         ex.ToSaveLog("OnlyQrView.init:");
     }
 }
Exemplo n.º 3
0
 public override void Init()
 {
     base.Init();
     Title.Text = MyMatch.SessionName;
     "散票兼容IC年卡验证模式".ToSaveLog("【调用模式】:");
     //创建线程循环请求IC卡
     if (!IdCardFunc.Port.IsNullOrEmpty())
     {
         _icThread = new Thread(OpenIc)
         {
             IsBackground = true
         };
         _icThread.Start();
     }
     _irSeialPort = new IrSerialPort(IrAdvanced.ReadString("BarCodePort"));
     _irSeialPort.DataReceived += irSeialPort_DataReceived;
     _irSeialPort.ErrorEvent   += (sender, e) => ShowEventMsg(e, MsgType.TipErr);
 }