Catrobat.IDE.Core.Xml.XmlObjects.Bricks.Sounds.XmlPlaySoundBrick.LoadFromXml C# (CSharp) Method

LoadFromXml() private method

private LoadFromXml ( System.Xml.Linq.XElement xRoot ) : void
xRoot System.Xml.Linq.XElement
return void
        internal override void LoadFromXml(XElement xRoot)
        {
            if (xRoot != null && xRoot.Element(XmlConstants.Sound) != null)
            {
                XmlSoundReference = new XmlSoundReference(xRoot.Element(XmlConstants.Sound));
            }
        }