Catrobat.IDE.Core.Xml.XmlObjects.Bricks.Variables.XmlChangeVariableBrick.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)
            {
                VariableFormula = new XmlFormula(xRoot, XmlConstants.VariableChange);

                if (xRoot.Element(XmlConstants.UserVariable) != null)
                    UserVariable = new XmlUserVariable(xRoot.Element(XmlConstants.UserVariable));
            }
        }