Beispiel #1
0
            public void AddPoint(int intScanNumber, int intMSLevel, float sngScanTimeMinutes, double dblIntensity)
            {
                if ((from item in mScans where item.ScanNum == intScanNumber select item).Any())
                {
                    throw new Exception("Scan " + intScanNumber + " has already been added to the TIC or BPI; programming error");
                }

                var chromDataPoint = new clsChromatogramDataPoint
                {
                    ScanNum     = intScanNumber,
                    TimeMinutes = sngScanTimeMinutes,
                    Intensity   = dblIntensity,
                    MSLevel     = intMSLevel
                };

                mScans.Add(chromDataPoint);
            }
            public void AddPoint(int scanNumber, int msLevel, float scanTimeMinutes, double intensity)
            {
                if (mScanNumbers.Contains(scanNumber))
                {
                    throw new Exception("Scan " + scanNumber + " has already been added to the TIC or BPI; programming error");
                }

                var dataPoint = new clsChromatogramDataPoint
                {
                    ScanNum     = scanNumber,
                    TimeMinutes = scanTimeMinutes,
                    Intensity   = intensity,
                    MSLevel     = msLevel
                };

                mScans.Add(dataPoint);
                mScanNumbers.Add(scanNumber);
            }