public WriterInspectionReport(List<Category> results, Evaluation eval, XComponentContext xContext = null)
            : base(results, eval, xContext)
        {
            this.eval = eval;
            this.results = results;

        }
 public AbstractWriterExportBase(List<Category> results, Evaluation eval,  XComponentContext xContext = null)
 {
     if (xContext != null)
     
         this.xContext = xContext;
         this.results = results;
         this.eval = eval;
         
    
 }
        private void initializeCriteria(string p)
        {
            categories = Parser.Parse(p);
            categoriesDict = Parser.AllCategoriesDict;
            allcriteria = Parser.GetAllCriteria();
            earl = new Earl();
            eval = new Evaluation();
            earlReader = new EarlReader();

            maxCountOfItemsTypeOne = Parser.GetMaxCountOfItemsTypOne();
            maxCountOfItemsTypeAll = Parser.GetMaxCountOfItems();
            maxCountOfRatingItems = Parser.GetMaxCountOfRatingItems();
        }