Finds all rules acting on data in an InfoPath form
Inheritance: InfoPathFeature
コード例 #1
0
 private static IEnumerable <DataRule> ParseRuleElement(XElement ruleElement)
 {
     foreach (XElement ruleAction in ruleElement.Elements())
     {
         DataRule feature = new DataRule();
         feature.ActionType = ruleAction.Name.LocalName;
         // we can be any one of many types of rules: dialogbox, assignment, query, submit, switch view
         // we could parse further if that turns out to be interesting
         yield return(feature);
     }
 }
コード例 #2
0
 private static IEnumerable<DataRule> ParseRuleElement(XElement ruleElement)
 {
     foreach (XElement ruleAction in ruleElement.Elements())
     {
         DataRule feature = new DataRule();
         feature.ActionType = ruleAction.Name.LocalName;
         // we can be any one of many types of rules: dialogbox, assignment, query, submit, switch view
         // we could parse further if that turns out to be interesting
         yield return feature;
     }
 }