private void checkHardWare() { if (!HardwareManager.OpenAll()) { checkHardWareRet = false; } else { HardwareManager.CheckAll(); if (!HardwareManager.HardWareError()) { checkHardWareRet = true; } else { checkHardWareRet = false; } } checkNetRet = !GPRS.ExistError(); }
public void OnTimeTick(int count) { if (count % timeout == 0) { if (!InitializeDeal.Initialized) { StartActivity("初始化"); } else { HardwareManager.CheckAll(); if (GPRS.ExistError()) { return; } if (!CardReader.ExistError() && !Esam.ExistError()) { GotoMain(); } } } }