Catrobat.IDE.Core.Xml.XmlObjects.XmlProjectHeader.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)
        {
            ApplicationBuildName = xRoot.Element(XmlConstants.ApplicationBuildName).Value;
            ApplicationBuildNumber = int.Parse(xRoot.Element(XmlConstants.ApplicationBuildNumber).Value, CultureInfo.InvariantCulture);
            ApplicationName = xRoot.Element(XmlConstants.ApplicationNameText).Value;
            ApplicationVersion = xRoot.Element(XmlConstants.ApplicationVersion).Value;
            CatrobatLanguageVersion = xRoot.Element(XmlConstants.CatrobatLanguageVersion).Value;
            DateTimeUpload = xRoot.Element(XmlConstants.DateTimeUpload).Value;
            Description = xRoot.Element(XmlConstants.Description).Value;
            DeviceName = xRoot.Element(XmlConstants.DeviceName).Value;
            MediaLicense = xRoot.Element(XmlConstants.MediaLicense).Value;
            Platform = xRoot.Element(XmlConstants.Platform).Value;
            PlatformVersion = xRoot.Element(XmlConstants.PlatformVersion).Value;
            ProgramLicense = xRoot.Element(XmlConstants.ProgramLicense).Value;
            ProgramName = xRoot.Element(XmlConstants.ProgramName).Value;
            RemixOf = xRoot.Element(XmlConstants.RemixOf).Value;
            ScreenHeight = int.Parse(xRoot.Element(XmlConstants.ScreenHeight).Value, CultureInfo.InvariantCulture);
            ScreenWidth = int.Parse(xRoot.Element(XmlConstants.ScreenWidth).Value, CultureInfo.InvariantCulture);
            Tags = xRoot.Element(XmlConstants.Tags).Value;
            Url = xRoot.Element(XmlConstants.Url).Value;
            UserHandle = xRoot.Element(XmlConstants.userHandle).Value;
            TargetPlatform = string.Empty;
        }