public void AddTransactionSet(EDIXmlTransactionSet ts) { if (Label != SegmentLabel.GroupLabel.Text) { throw new Exception("Cannot add a transaction set to this object!"); } base.Add(ts); }
public void AddContent(EDIXmlTransactionSet transactionSet) { IEnumerable <XElement> ediFunctionGroups = this.EDIFunctionGroups(); if (ediFunctionGroups == null) { throw new ApplicationException("Function Group has not been set."); } XElement first = ediFunctionGroups.First(); if (first == null) { throw new ApplicationException("No Function Group found in list."); } first.Add(transactionSet); }
public void AddTo(EDIXmlTransactionSet transactionSet) { transactionSet.AddLoop(Root); }