示例#1
0
        public static List<Variable> GetInputParameters(InstalledWidget InstalledWidget)
        {
            List<Variable> UIProperties = new List<Variable>();

            StreamReader reader = File.OpenText(InstalledWidget.WidgetXMLPath);

            string Code = reader.ReadToEnd();

            Interpreter App = new Interpreter();
            DateTime Start = DateTime.Now;

            XmlDocument ApplicationXML = new XmlDocument();

            Code = RegexXMLFormat.Modify(Code);

            Code = "<widget>" + Code + "</widget>";

            try
            {
                ApplicationXML.LoadXml(Code);
                UIProperties = App.GetInputParameters(Code, InstalledWidget);
            }
            catch (XmlException ex)
            {
                throw ex;
            }

            return UIProperties;
        }