ACAT.Lib.Core.AbbreviationsManagement.Abbreviations.createAndAddAbbreviation C# (CSharp) Méthode

createAndAddAbbreviation() private méthode

Parses the xml node attributes from the xml nodeand creates an abbreviation object adds it to the sorted list
private createAndAddAbbreviation ( XmlNode node ) : void
node System.Xml.XmlNode Source xml node
Résultat void
        private void createAndAddAbbreviation(XmlNode node)
        {
            var word = XmlUtils.GetXMLAttrString(node, WordAttr).Trim();
            var replaceWith = XmlUtils.GetXMLAttrString(node, ReplaceWithAttr);
            var mode = XmlUtils.GetXMLAttrString(node, ModeAttr).Trim();
            Add(new Abbreviation(word, replaceWith, mode));
        }
    }