コード例 #1
0
ファイル: DataBand.cs プロジェクト: Telesquad1/Forky
        /// <inheritdoc/>
        public override void RemoveChild(Base child)
        {
            base.RemoveChild(child);
            if (IsRunning)
            {
                return;
            }

            if (child is DataHeaderBand && header == child as DataHeaderBand)
            {
                Header = null;
            }
            if (child is DataFooterBand && footer == child as DataFooterBand)
            {
                Footer = null;
            }
            if (child is DataBand || child is GroupHeaderBand)
            {
                bands.Remove(child as BandBase);
            }
        }
コード例 #2
0
 /// <inheritdoc/>
 public virtual void RemoveChild(Base child)
 {
     if (IsRunning)
     {
         bands.Remove(child as BandBase);
         return;
     }
     if (child is PageHeaderBand && pageHeader == child as PageHeaderBand)
     {
         PageHeader = null;
     }
     if (child is ReportTitleBand && reportTitle == child as ReportTitleBand)
     {
         ReportTitle = null;
     }
     if (child is ColumnHeaderBand && columnHeader == child as ColumnHeaderBand)
     {
         ColumnHeader = null;
     }
     if (child is DataBand || child is GroupHeaderBand)
     {
         bands.Remove(child as BandBase);
     }
     if (child is ReportSummaryBand && reportSummary == child as ReportSummaryBand)
     {
         ReportSummary = null;
     }
     if (child is ColumnFooterBand && columnFooter == child as ColumnFooterBand)
     {
         ColumnFooter = null;
     }
     if (child is PageFooterBand && pageFooter == child as PageFooterBand)
     {
         PageFooter = null;
     }
     if (child is OverlayBand && overlay == child as OverlayBand)
     {
         Overlay = null;
     }
 }