public ManualTotalSummaryChildTable(Element parent) : base(parent) { ManualTotalSummaryArray = new ManualTotalSummary[parent.ParentTableDescriptor.Fields.Count]; ManualTotalSummaryTable td = (parent is Table ? parent : parent.ParentTable) as ManualTotalSummaryTable; if (td != null) { foreach (string field in td.TotalSummaries) { new ManualTotalSummary(this, field); } } }
public ManualTotalSummaryGroup(Section parent) : base(parent) { ManualTotalSummaryArray = new ManualTotalSummary[parent.ParentTableDescriptor.Fields.Count]; ManualTotalSummaryTable td = parent.ParentTable as ManualTotalSummaryTable; if (td != null) { foreach (string field in td.TotalSummaries) { new ManualTotalSummary(this, field); } } }