public void Parse(string strRule, Version version)
        {
            this.Actions = new SortableBindingList <dmAction>();
            this.Rules   = new SortableBindingList <dmRule>();

            string RuleWithoutMode = strRule;

            if (strRule.StartsWith("|"))
            {
                this.RuleMode   = RulesetModes.OR;
                RuleWithoutMode = RuleWithoutMode.Trim(new char[] { '|', ' ' });
            }

            string[] tmpString = RuleWithoutMode.Split(new string[] { "=>" }, StringSplitOptions.None);
            try
            {
                parseRules(tmpString[0].Trim(), version);
                parseActions(tmpString[1].Trim(), version);
            }
            catch { }
        }
Exemple #2
0
 private dmTemplate()
 {
     this.Name  = "GenericTemplate";
     this.Items = new SortableBindingList <dmParameters>();
 }
 public override void Clear()
 {
     base.Clear();
     this.Groups   = new SortableBindingList <dmGroup>();
     this.Rulesets = new SortableBindingList <dmRuleset>();
 }