private void AdjustDocListForms(BizControl form) { if (form.Children != null) { foreach (var control in form.Children) { var listForm = control as BizDocumentListForm; if (listForm != null) { if (listForm.Children != null && listForm.Children.Count > 0) { _adjuster.AddTableForm(listForm); } else if (listForm.TableForm != null) { _adjuster.AddTableForm(listForm.TableForm); } } else { AdjustDocListForms(control); } } } }
private void AdjustDocListForms(BizControl form) { Headers.ForEach(_adjuster.AddReportSection); _adjuster.AddTableForm(form); Footers.ForEach(_adjuster.AddReportSection); }