コード例 #1
0
		protected BaseListStrategy(ReportSettings reportSettings)
		{
			if (reportSettings == null) {
				throw new ArgumentNullException("reportSettings");
			}
			this.ReportSettings = reportSettings;
			this.IndexList = new IndexList("IndexList");
			ExpressionEvaluator = new ExpressionEvaluatorFacade (null);
		}
コード例 #2
0
		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;
		}
コード例 #3
0
        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);
        }
コード例 #4
0
		public void CanInitExpressionEvaluatorFassade()
		{
			IExpressionEvaluatorFacade f = new ExpressionEvaluatorFacade();
			Assert.IsNotNull (f);
		}
コード例 #5
0
ファイル: BasePager.cs プロジェクト: Bombadil77/SharpDevelop
		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);
			}
		}
コード例 #6
0
ファイル: BasePager.cs プロジェクト: hpsa/SharpDevelop
		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);
			}
		}