private void UpdateCumulativeIntervals(BindingList<PacketInterval> newIntervals) { ProcessCapturePackets pcp = new ProcessCapturePackets(); // Add batch to cumulative totals if (newIntervals.Count > 0) { try { pcp.UpdateCumulativeIntervals(_DbConnectionString, newIntervals); } catch (Exception ex) { throw new Exception("BatchIntervalEngine: Error updating cumulative intervals for this file [" + _CaptureFileName + "]: " + ex.Message); } } else { throw new Exception("BatchIntervalEngine: UpdateCumulativeIntervals - error updating cumulative intervals for this file [" + _CaptureFileName + "]: new intervals list contains no data!"); } }