Ejemplo n.º 1
0
        public FaceCore()
        {
            Employee = new Employee();
            AlarmEmployee = new Employee();
            delayCall = new FuncTimeout();

            AlarmVisibility = Visibility.Collapsed;
            ReadyVisibility = Visibility.Visible;
        }
Ejemplo n.º 2
0
        public Koala(string welcome)
        {
            VisitorInfo = new VisitorInfo();
            WelcomeVisibility = Visibility.Visible;
            WorkVisibilty = Visibility.Collapsed;
            ForbiddenVisibitily = Visibility.Collapsed;

            delayCall = new FuncTimeout();
            WelcomeContent = "初始化...";
            this.welcome = welcome;

            koalaSocket = new KoalaWebSocket();
            updateTimer = new DispatcherTimer();
        }
Ejemplo n.º 3
0
        private void MifareInOrLeave(byte b1, byte b2)
        {
            var slot = b1 & 0xF0;
            var mediaStatus = b1 & 0x0F;
            if (mediaStatus == 1)
            {
                Log("进入, 读取序列号...");
                _getSerialNumberTick = new FuncTimeout();
                _getSerialNumberTick.StartLoop(500, () =>
                {
                    var sendData = MifarePackage.GetSendData("00 00");
                    CMD = 1;
                    Write(sendData);
                });
            }
            else
            {
                Log("离开");
                StopAuto();
            }

            ShowICType(b2);
        }
Ejemplo n.º 4
0
 private void StopAuto()
 {
     if (_getSerialNumberTick != null)
     {
         _getSerialNumberTick.Stop();
         _getSerialNumberTick = null;
     }
 }
Ejemplo n.º 5
0
 public FaceCore()
 {
     Employee = new Employee();
     delayCall = new FuncTimeout();
     server = new UdpComServer(server_port);
 }