예제 #1
0
 /// <summary>
 /// Visits all sections in this report.
 /// </summary>
 /// <param name="visitor">The report visitor.</param>
 public void Visit(IReportVisitor visitor)
 {
     foreach (var section in this.Sections)
     {
         // Cast to dynamic to force runtime overload selection
         visitor.Visit((dynamic)section);
     }
 }
예제 #2
0
        public ReportWalker(IReportVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            myVisitor = visitor;

            myAlreadyVisited = new List <object>();
        }
예제 #3
0
파일: ReportWalker.cs 프로젝트: bg0jr/Maui
        public ReportWalker( IReportVisitor visitor )
        {
            if ( visitor == null )
            {
                throw new ArgumentNullException( "visitor" );
            }

            myVisitor = visitor;

            myAlreadyVisited = new List<object>();
        }
예제 #4
0
 public void Accept(IReportVisitor visitor)
 {
     visitor.Visit(this);
 }
예제 #5
0
 public IEnumerable <Object> Accept(IReportVisitor visitor)
 {
     return(visitor.ExportCustomerReport(this._customer));
 }
예제 #6
0
 public IEnumerable <Object> Accept(IReportVisitor visitor)
 {
     return(visitor.ExportAccessoryReceiptReport(this._accessoryReceipt));
 }
예제 #7
0
 public IEnumerable <Object> Accept(IReportVisitor visitor)
 {
     return(visitor.ExportRevenueReport(this._bill));
 }