示例#1
0
 /// <inheritdoc/>
 public virtual void AddChild(Base child)
 {
     if (IsRunning)
     {
         bands.Add(child as BandBase);
         return;
     }
     if (child is PageHeaderBand)
     {
         PageHeader = child as PageHeaderBand;
     }
     if (child is ReportTitleBand)
     {
         ReportTitle = child as ReportTitleBand;
     }
     if (child is ColumnHeaderBand)
     {
         ColumnHeader = child as ColumnHeaderBand;
     }
     if (child is DataBand || child is GroupHeaderBand)
     {
         bands.Add(child as BandBase);
     }
     if (child is ReportSummaryBand)
     {
         ReportSummary = child as ReportSummaryBand;
     }
     if (child is ColumnFooterBand)
     {
         ColumnFooter = child as ColumnFooterBand;
     }
     if (child is PageFooterBand)
     {
         PageFooter = child as PageFooterBand;
     }
     if (child is OverlayBand)
     {
         Overlay = child as OverlayBand;
     }
 }
示例#2
0
 /// <inheritdoc/>
 public override void AddChild(Base child)
 {
     if (IsRunning)
     {
         base.AddChild(child);
         return;
     }
     if (child is DataHeaderBand)
     {
         Header = child as DataHeaderBand;
     }
     else if (child is DataFooterBand)
     {
         Footer = child as DataFooterBand;
     }
     else if (child is DataBand || child is GroupHeaderBand)
     {
         bands.Add(child as BandBase);
     }
     else
     {
         base.AddChild(child);
     }
 }