public void AddFunctionGroup(EDIXmlFunctionGroup grp) { if (Label != SegmentLabel.InterchangeLabel.Text) { throw new Exception("Cannot add a function group to this object!"); } base.Add(grp); }
public void SetHeader(int controlNo, string functionalID, bool test) { _header = _segmentFactory.GetInterchangeHeader(controlNo, test); var functionGroup = new EDIXmlFunctionGroup(_segmentFactory); functionGroup.SetHeader(controlNo, functionalID); AddSegment(_header); AddFunctionGroup(functionGroup); }