/// <summary>
        /// Update Package with Standard and ReqIF Properties
        /// </summary>
        protected override void UpdatePackage()
        {
            EA.Element el = Rep.GetElementByGuid(Pkg.PackageGUID);
            GetModuleProperties(ReqIfDeserialized, el);

            base.UpdatePackage();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Update import package with file properties/attributes of HEADER and MODULE
        /// </summary>
        private void UpdatePackage(XElement xElFile)
        {
            var fileAttres = (from attr in xElFile.Descendants(xmlModuleName).Elements()
                              select new { Name = attr.Name, Value = attr.Value })
                             .Union
                                 (from attr in xElFile.Descendants(xmlHeaderName).Elements()
                                 select new { Name = attr.Name, Value = attr.Value })
            ;

            foreach (var attr in fileAttres)
            {
                EA.Element el = Rep.GetElementByGuid(Pkg.PackageGUID);
                TaggedValue.SetUpdate(el, attr.Name.ToString(), attr.Value);
            }
        }