예제 #1
0
        private XmlClass CreateFromXml(XmlElement node)
        {
            switch (node.LocalName)
            {
            case "configuration":
                return(Configuration.CreateFromXml(node));

            case "component":
                return(Component.CreateFromXml(node));

            case "installedcheck":
                return(InstalledCheck.CreateFromXml(node));

            case "installedcheckoperator":
                return(InstalledCheckOperator.CreateFromXml(node));

            case "download":
                return(Download.CreateFromXml(node));

            case "downloaddialog":
                return(DownloadDialog.CreateFromXml(node));

            case "embedfile":
                return(EmbedFile.CreateFromXml(node));

            case "embedfolder":
                return(EmbedFolder.CreateFromXml(node));

            case "control":
                return(Control.CreateFromXml(node));

            default:
                throw new Exception(string.Format("Unsupported node: {0}", node.LocalName));
            }
        }
예제 #2
0
        public static InstalledCheckOperator CreateFromXml(XmlElement element)
        {
            InstalledCheckOperator result = new InstalledCheckOperator();

            result.FromXml(element);
            return(result);
        }
 public static InstalledCheckOperator CreateFromXml(XmlElement element)
 {
     InstalledCheckOperator result = new InstalledCheckOperator();
     result.FromXml(element);
     return result;
 }