Example #1
0
 void RemoveIconSetRuleCondition(IconSetRule iconSetRule)
 {
     if (this.iconValues.ContainsKey(iconSetRule))
     {
         this.RemoveConditionsByRange(iconSetRule.Ranges, this.iconValues[iconSetRule].ToArray());
     }
 }
Example #2
0
 void AddIconSetRuleCondition(IconSetRule iconSetRule)
 {
     if (iconSetRule != null)
     {
         List <DummyIconSetValue> list = new List <DummyIconSetValue>();
         for (int i = 0; i < iconSetRule.IconCriteria.Length; i++)
         {
             IconCriterion criterion = iconSetRule.IconCriteria[i];
             if (((criterion != null) && (criterion.IconValueType == IconValueType.Formula)) && !string.IsNullOrEmpty((string)(criterion.Value as string)))
             {
                 list.Add(new DummyIconSetValue(iconSetRule, i));
             }
             else if (((criterion != null) && !string.IsNullOrEmpty((string)(criterion.Value as string))) && (criterion.Value as string).StartsWith("="))
             {
                 list.Add(new DummyIconSetValue(iconSetRule, i));
             }
         }
         if (list.Count > 0)
         {
             this.iconValues.Add(iconSetRule, list);
             this.AddConditionsByRange(iconSetRule.Ranges, list.ToArray());
         }
     }
 }
Example #3
0
 public DummyIconSetValue(IconSetRule rule, int index)
 {
     this.iconSetRule = rule;
     this.valueIndex  = index;
 }