public List<PosRecord> ER_GetAllRecord() { this._ListConsRecords = new List<T690ReadData>(); procDelegate = ReceiveData; timeDelegate = TimeLapse; int res = ReadAllRecord(this._DevicePort, this._DevicePort, procDelegate, timeDelegate); List<PosRecord> listRecod = new List<PosRecord>(); foreach (T690ReadData itemT690 in this._ListConsRecords) { PosRecord posRecord = GetPosRecord(itemT690); if (posRecord != null) { listRecod.Add(posRecord); } } return listRecod; }
private static extern int ReadAllRecord(IntPtr hPort, IntPtr hData, TDataProcessDelegate procDelegate, TimeLapseDelegae timeDelegate);