protected BaseListStrategy(ReportSettings reportSettings) { if (reportSettings == null) { throw new ArgumentNullException("reportSettings"); } this.ReportSettings = reportSettings; this.IndexList = new IndexList("IndexList"); ExpressionEvaluator = new ExpressionEvaluatorFacade (null); }
public static IExpressionEvaluatorFacade CreateEvaluator (ISinglePage singlePage,IDataNavigator dataNavigator) { if (singlePage == null) { throw new ArgumentNullException("singlePage"); } singlePage.IDataNavigator = dataNavigator; IExpressionEvaluatorFacade evaluatorFacade = new ExpressionEvaluatorFacade(singlePage); return evaluatorFacade; }
public static IExpressionEvaluatorFacade CreateEvaluator(ISinglePage singlePage, IDataNavigator dataNavigator) { if (singlePage == null) { throw new ArgumentNullException("singlePage"); } singlePage.IDataNavigator = dataNavigator; IExpressionEvaluatorFacade evaluatorFacade = new ExpressionEvaluatorFacade(singlePage); return(evaluatorFacade); }
public void CanInitExpressionEvaluatorFassade() { IExpressionEvaluatorFacade f = new ExpressionEvaluatorFacade(); Assert.IsNotNull (f); }
protected void FinishRendering (IDataNavigator navigator) { if (this.Pages.Count == 0) { return; } // set values known only end of reportcreation foreach (ExporterPage p in this.pages) { p.TotalPages = this.Pages.Count; } IExpressionEvaluatorFacade evaluatorFacade = new ExpressionEvaluatorFacade(); foreach (ExporterPage p in this.pages) { this.singlePage = p; evaluatorFacade.SinglePage = this.singlePage; evaluatorFacade.SinglePage.IDataNavigator = navigator; EvaluateRecursive(evaluatorFacade,p.Items); } }
protected void FinishRendering (IDataNavigator dataNavigator) { if (this.Pages.Count == 0) { return; } IExpressionEvaluatorFacade evaluatorFacade = new ExpressionEvaluatorFacade(this.SinglePage); foreach (ExporterPage p in this.pages) { p.TotalPages = this.Pages.Count; p.IDataNavigator = dataNavigator; evaluatorFacade.SinglePage = p; EvaluateRecursive(evaluatorFacade,p.Items); } }