예제 #1
0
        //public ModelReportingService(EstimateModel estimateModel, ReportModel reportModel)


        /// <summary>
        /// Returns the completed report object or a NULL value if the report cannot be completed.
        /// </summary>
        /// <returns></returns>
        private void GenerateModelReport()
        {
            try
            {
                ComparatorReport comparatorReport = new ComparatorReport(_estimateModel, _reportModel);
                comparatorReport.GenerateReport();
                ModelReport = comparatorReport;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
        //public ModelReportingService(EstimateModel estimateModel, ReportModel reportModel)


        /// <summary>
        /// Returns the completed report object or a NULL value if the report cannot be completed.
        /// </summary>
        /// <returns></returns>
        private void GenerateModelReport()
        {
            if (_estimateModel != null && _reportModel != null)
            {
                try
                {
                    ComparatorReport comparatorReport = new ComparatorReport(_estimateModel, _reportModel);
                    comparatorReport.GenerateSystemReport();
                    ModelReport = comparatorReport;
                }
                catch (Exception e)
                {
                    throw new Exception(e.Message);
                }
            }
        }