Пример #1
0
 public DurANSSIRegroup(RuleDurANSSIAttribute rule, List <RuleBase <HealthcheckData> > data)
 {
     PCRules = new List <RuleBase <HealthcheckData> >();
     ID      = rule.ID;
     Label   = rule.ANSSILabel;
     Levels  = new List <int>();
     Levels.Add(rule.Level);
     MinLevel = rule.Level;
     PCRules  = new List <RuleBase <HealthcheckData> >();
     PCRules.AddRange(data);
 }
Пример #2
0
 public void Add(RuleDurANSSIAttribute rule, List <RuleBase <HealthcheckData> > data)
 {
     if (!Levels.Contains(rule.Level))
     {
         Levels.Add(rule.Level);
     }
     PCRules.AddRange(data);
     if (MinLevel > rule.Level)
     {
         MinLevel = rule.Level;
     }
 }