private void UpdateSectionInfo(PageGroupInfo groupInfo) { PageSectionInfo newpageSections = groupInfo as PageSectionInfo; if (newpageSections != null) { SectionFilterCollectionWrapper scFilterWrapper = new SectionFilterCollectionWrapper(); scFilterWrapper.ReportScType = newpageSections.SectionFilterWrapper.ReportScType; foreach (SectionFilter scFilter in newpageSections.SectionFilterWrapper.SectionFilters) { if (scFilter == null) { scFilterWrapper.SectionFilters.Add(scFilter); } else { SectionFilter newScFilter = new SectionFilter(); newScFilter.Apply(scFilter); scFilterWrapper.SectionFilters.Add(newScFilter); } } (groupInfo as PageSectionInfo).SectionFilterWrapper = scFilterWrapper; } }
override public PageGroupInfo Copy() { PageSectionInfo thiscopy = new PageSectionInfo(); thiscopy._SortingType = this._SortingType; thiscopy._SortingByType = this._SortingByType; thiscopy._GroupTitle = this._GroupTitle; thiscopy._TopCount = this._TopCount; if (_SubPageGroupInfos != null) { thiscopy._SubPageGroupInfos = this._SubPageGroupInfos.Copy(); } thiscopy._ReportScType = this._ReportScType; thiscopy._Filter = this.Filter.Copy(); thiscopy._Repeat = this._Repeat; thiscopy.RepeatTitle = this.RepeatTitle; thiscopy._SectionFilterWrapper = this._SectionFilterWrapper; thiscopy._SkippedCount = this._SkippedCount; thiscopy._PageValueCount = this._PageValueCount; return(thiscopy); }