Exemple #1
0
        public RdAlias FindAlias(string name)
        {
            RdAlias ret = null;

            foreach (KeyValuePair <string, RdAlias> item in this.m_list)
            {
                bool flag = item.Key == name;
                if (flag)
                {
                    ret = item.Value;
                    break;
                }
            }
            return(ret);
        }
Exemple #2
0
        public void Load(XmlNode node)
        {
            bool hasChildNodes = node.HasChildNodes;

            if (hasChildNodes)
            {
                for (XmlNode aliasNode = node.FirstChild; aliasNode != null; aliasNode = aliasNode.NextSibling)
                {
                    bool flag = aliasNode.Name == "Alias";
                    if (flag)
                    {
                        RdAlias gtrAlias = new RdAlias(this.m_document);
                        gtrAlias.Load(aliasNode);
                        this.m_list.Add(gtrAlias.Name, gtrAlias);
                        this.Document.Changed();
                    }
                }
            }
        }