ATMLCommonLibrary.controls.awb.AWBXmlTreeView.AddElementAttributes C# (CSharp) Method

AddElementAttributes() private static method

private static AddElementAttributes ( XmlNode parentNode, TreeNode tn ) : void
parentNode System.Xml.XmlNode
tn System.Windows.Forms.TreeNode
return void
        private static void AddElementAttributes( XmlNode parentNode, TreeNode tn )
        {
            if (parentNode.Attributes != null)
            {
                XmlAttribute[] array = new XmlAttribute[parentNode.Attributes.Count];
                parentNode.Attributes.CopyTo( array, 0 );
                SortAttributes(array);
                foreach (XmlAttribute xmlAttribute in array )
                {
                    if (!"xmlns, id, uuid".Contains( xmlAttribute.LocalName ))
                    {
                        var tnAttribute = new TreeNode( xmlAttribute.LocalName );
                        tnAttribute.Tag = xmlAttribute;
                        tn.Nodes.Add( tnAttribute );
                    }
                }
            }
        }