public FaceCore() { Employee = new Employee(); AlarmEmployee = new Employee(); delayCall = new FuncTimeout(); AlarmVisibility = Visibility.Collapsed; ReadyVisibility = Visibility.Visible; }
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(); }
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); }
private void StopAuto() { if (_getSerialNumberTick != null) { _getSerialNumberTick.Stop(); _getSerialNumberTick = null; } }
public FaceCore() { Employee = new Employee(); delayCall = new FuncTimeout(); server = new UdpComServer(server_port); }