private void AddScanEvent( AttendeeScanBase e, string typeText) { var h = QueryModelRepository.Csv[e.HappeningId]; var person = QueryModelRepository.Csv.People.First( m => m.PersonId.Equals(e.PersonId, StringComparison.OrdinalIgnoreCase)); h.ScanRows.Add(e.ScanId, new CsvScanRow { HappeningId = e.HappeningId, CheckpointId = e.CheckpointId, CheckpointName = QueryModelRepository.Csv.Checkpoints[e.CheckpointId].Name, PersonId = e.PersonId, PersonName = person.Lastname + " " + person.Firstname, Timestamp = e.Timestamp, Text = typeText }); }
public CheckpointScan(AttendeeScanBase e) { this.PersonId = e.PersonId; this.TimeStamp = e.Timestamp; this.ScanId = e.ScanId; }
private static void RemoveScanEvent(AttendeeScanBase e) { var h = QueryModelRepository.Csv[e.HappeningId]; h.ScanRows.Remove(e.ScanId); }