private void MockTestResults()
        {
            List <ReportTestResult> reportTestResultList = new List <ReportTestResult>();
            ReportTestResult        reportTestResult1    = new ReportTestResult();

            reportTestResult1.PassedTest = true;
            reportTestResult1.ReportName = "David";
            ReportTestResult reportTestResult2 = new ReportTestResult();

            reportTestResult2.PassedTest = false;
            reportTestResult2.ReportName = "David2";
            reportTestResultList.Add(reportTestResult1);
            reportTestResultList.Add(reportTestResult2);
            this.TestResults = (IList <ReportTestResult>)reportTestResultList;
        }
        private void CheckModelForCompatibility(Controller rs, string existingModelPath, string newModelSMDL)
        {
            this.Show();
            this.DialogResult = DialogResult.Yes;
            bool flag = true;
            List <ReportItemDTO>    reportItemDtoList    = rs.ListDependantItems(existingModelPath);
            ReportModelValidator    reportModelValidator = new ReportModelValidator(newModelSMDL);
            List <ReportTestResult> reportTestResultList = new List <ReportTestResult>();

            foreach (ReportItemDTO reportItemDto in reportItemDtoList)
            {
                string reportRDL = Encoding.UTF8.GetString(rs.GetReport(reportItemDto.Path));
                if (reportRDL[0] == '\xFEFF')
                {
                    reportRDL = reportRDL.Substring(1);
                }
                ReportTestResult reportTestResult = new ReportTestResult();
                reportTestResult.ReportName = reportItemDto.Path + "/" + reportItemDto.Name;
                reportTestResult.PassedTest = reportModelValidator.ValidateModelForReport(reportRDL);
                if (!reportTestResult.PassedTest)
                {
                    flag = false;
                }
                reportTestResultList.Add(reportTestResult);
                this.TestResults = (IList <ReportTestResult>)reportTestResultList;
                Application.DoEvents();
            }
            if (!flag)
            {
                int num1 = (int)MessageBox.Show("This model seem to have some compatibility issues with existing reports.", "Compatibility warning", MessageBoxButtons.OK);
            }
            else
            {
                int num2 = (int)MessageBox.Show("The new model seems to be compatible with existing reports. ", "", MessageBoxButtons.OK);
            }
        }