public void AddRegistryItem(WonkaRegistryItem poNewRuleTree) { if ((poNewRuleTree != null) && !String.IsNullOrEmpty(poNewRuleTree.RuleTreeId)) { moRegisteredRuleTrees[poNewRuleTree.RuleTreeId] = poNewRuleTree; SerializeRegistryItem(poNewRuleTree.RuleTreeId); } }
public void SerializeRegistryItem(string psRuleTreeName) { WonkaRegistryItem FoundItem = null; if (!String.IsNullOrEmpty(psRuleTreeName) && moRegisteredRuleTrees.ContainsKey(psRuleTreeName)) { FoundItem = moRegisteredRuleTrees[psRuleTreeName]; FoundItem.Serialize(); } }
public WonkaRegistryItem GetRegistryItem(string psRuleTreeName) { WonkaRegistryItem FoundItem = null; if (!String.IsNullOrEmpty(psRuleTreeName) && moRegisteredRuleTrees.ContainsKey(psRuleTreeName)) { FoundItem = moRegisteredRuleTrees[psRuleTreeName]; } return(FoundItem); }