Ejemplo n.º 1
0
 public void ShowBrokenRules(ExtendedBrokenRulesCollection brokenRules)
 {
     brokenRulesControl.ClearBrokenRules();
     brokenRulesControl.ShowBrokenRules(brokenRules);
     SetTopMessage();
     ShowOrHide();
 }
Ejemplo n.º 2
0
 public TreeNode(int id, int parentID, string description, object link, ExtendedBrokenRulesCollection brokenRules,
                 bool initiallyExpanded)
     : base(id, parentID, description)
 {
     Link              = link;
     BrokenRules       = brokenRules;
     InitiallyExpanded = initiallyExpanded;
 }
Ejemplo n.º 3
0
 public TreeNode(int id, int parentID, string description, object link, ExtendedBrokenRulesCollection brokenRules,
     bool initiallyExpanded)
     : base(id, parentID, description)
 {
     Link = link;
     BrokenRules = brokenRules;
     InitiallyExpanded = initiallyExpanded;
 }
Ejemplo n.º 4
0
        private static bool HasNodeErrors(TreeListNode node)
        {
            bool result = false;

            if (node != null)
            {
                object treeNode = node.TreeList.GetDataRecordByNode(node);
                if (treeNode is TreeNode)
                {
                    ExtendedBrokenRulesCollection brokenRules = ((TreeNode)treeNode).BrokenRules;
                    foreach (var item in brokenRules)
                    {
                        if (item.Severity == RuleSeverity.Error)
                        {
                            result = true;
                            break;
                        }
                    }
                }
            }
            return(result);
        }
Ejemplo n.º 5
0
 public BrokenRulesCollectorEx(IBrokenBusinessRules rootObject)
 {
     _rootObject = rootObject;
     _brokenRules = new ExtendedBrokenRulesCollection();
 }
Ejemplo n.º 6
0
 public BrokenRulesCollector(BusinessBase businessObject)
 {
     _businessObject = businessObject;
     _brokenRules = new ExtendedBrokenRulesCollection();
 }
Ejemplo n.º 7
0
 public void ShowBrokenRules(ExtendedBrokenRulesCollection brokenRules)
 {
     _brokenRules = brokenRules;
     ShowBrokenRules();
 }
Ejemplo n.º 8
0
 public void Collect(IBrokenRulesCollector collector)
 {
     collector.Collect();
     _brokenRules = collector.BrokenRules;
     ShowBrokenRules();
 }