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); }