VAGSuite.EDC15CFileParser.AddToAxisCollection C# (CSharp) Method

AddToAxisCollection() private method

private AddToAxisCollection ( List newAxisHelpers, int ID, string descr, string units, double correction, double offset ) : void
newAxisHelpers List
ID int
descr string
units string
correction double
offset double
return void
        private void AddToAxisCollection(List<AxisHelper> newAxisHelpers, int ID, string descr, string units, double correction, double offset)
        {
            if (ID == 0) return;
            foreach (AxisHelper ah in newAxisHelpers)
            {
                if (ah.AxisID == ID) return;
            }
            AxisHelper ahnew = new AxisHelper();
            ahnew.AxisID = ID;
            ahnew.Description = descr;
            ahnew.Units = units;
            ahnew.Correction = correction;
            ahnew.Offset = offset;
            newAxisHelpers.Add(ahnew);
        }