Beispiel #1
0
        public void initializeControl(RuleResult ruleResult, SQLRepository repository)
        {
            this.entryList  = new List <RadioButton>();
            this.rule       = ruleResult.Rule;
            this.ruleResult = ruleResult;
            this.repository = repository;
            this.eaObject   = ruleResult.EaObject;
            setTitle(ruleResult.getFullErrorMessage());

            try {
                foreach (String entry in rule.getQuickFixMessages(ruleResult.ErrorOutput))
                {
                    addEntry(entry);
                }
            }
            catch (Exception)
            {
            }
            if (entryList.Count == 0)
            {
                addEntry(NotAvailable);
            }

            if (entryList.Count > 0)
            {
                this.entryList[0].Checked = true;
            }
        }