private bool tmpEnumConverters(ref ZG_FIND_CTR_INFO pInfo, int nPos, int nMax, IntPtr pUserData) { ControllerInfoShort newControllerInfoShort = new ControllerInfoShort(); newControllerInfoShort.name = CtrTypeStrs[(int)pInfo.nType]; newControllerInfoShort.address = pInfo.nAddr; newControllerInfoShort.serialNumber = pInfo.nSn; newControllerInfoShort.maxEvents = pInfo.nMaxEvents; tmpControllerInfoShortList.Add(newControllerInfoShort); return(true); }
static bool EnumCtrsCB(ref ZG_FIND_CTR_INFO pInfo, int nPos, int nMax, IntPtr pUserData) { log.Info(CtrTypeStrs[(int)pInfo.nType] + ", адрес: " + pInfo.nAddr + ", с/н: " + pInfo.nSn + ", кл.: {5}, соб.: " + pInfo.nMaxEvents + ", " + KeyModeStrs[((pInfo.nFlags & ZGIntf.ZG_CTR_F_PROXIMITY) != 0) ? 1 : 0] + ";"); g_nCtrCount++; return(true); }