Пример #1
0
        public void AddRegistryItem(WonkaRegistryItem poNewRuleTree)
        {
            if ((poNewRuleTree != null) && !String.IsNullOrEmpty(poNewRuleTree.RuleTreeId))
            {
                moRegisteredRuleTrees[poNewRuleTree.RuleTreeId] = poNewRuleTree;

                SerializeRegistryItem(poNewRuleTree.RuleTreeId);
            }
        }
Пример #2
0
        public void SerializeRegistryItem(string psRuleTreeName)
        {
            WonkaRegistryItem FoundItem = null;

            if (!String.IsNullOrEmpty(psRuleTreeName) && moRegisteredRuleTrees.ContainsKey(psRuleTreeName))
            {
                FoundItem = moRegisteredRuleTrees[psRuleTreeName];

                FoundItem.Serialize();
            }
        }
Пример #3
0
        public WonkaRegistryItem GetRegistryItem(string psRuleTreeName)
        {
            WonkaRegistryItem FoundItem = null;

            if (!String.IsNullOrEmpty(psRuleTreeName) && moRegisteredRuleTrees.ContainsKey(psRuleTreeName))
            {
                FoundItem = moRegisteredRuleTrees[psRuleTreeName];
            }

            return(FoundItem);
        }