예제 #1
0
        public AppVersion(XmlNode node)
        {
            if (node.Attributes.GetNamedItem(XMLTags.nameAttribute) != null)
            {
                m_name = node.Attributes[XMLTags.nameAttribute].Value;
            }

            foreach (XmlElement child in node.ChildNodes)
            {
                //Only Exe and AppVersionRequirements (i/o files and architecture)
                if (child.Name == XmlTags.Exe)
                {
                    m_exeFile = child.InnerText;
                }
                else if (child.Name == XmlTags.Requirements)
                {
                    m_requirements = new AppVersionRequirements(child);
                }
            }
        }
예제 #2
0
 public AppVersion(string name, string exeFile, AppVersionRequirements requirements)
 {
     m_name         = name;
     m_exeFile      = exeFile;
     m_requirements = requirements;
 }