Inheritance: IXsdParser
Ejemplo n.º 1
0
        public void CanParseXFormFromXmlFileMoveCopySettingsXsd()
        {
            //asign
            var xsdParser = new XsdParser();

            //action
            var xForm = xsdParser.ParseXsdFile("MoveCopySettings.xsd");

            //assert
            Assert.NotNull(xForm);
        }
Ejemplo n.º 2
0
        public void CanParseXFormFromXmlFileDocumentumArchivageSettingsXsd()
        {
            //asign
            var xsdParser = new XsdParser();

            //action
            var xForm = xsdParser.ParseXsdFile("DocumentumArchivageSettings.xsd");

            //assert
            Assert.NotNull(xForm);
        }
Ejemplo n.º 3
0
        public void CanParseXFormFromXmlFileDocumentumArchivageSettingsXml()
        {
            //asign
            var xmlParser = new XmlParser();
            var xsdParser = new XsdParser();
            var xForm = xsdParser.ParseXsdFile("DocumentumArchivageSettings.xsd");

            //action
            var xFormFromXml = xmlParser.GetFilledXForm("DocumentumArchivageSettings.xml", xForm);

            //assert
            Assert.NotNull(xFormFromXml);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Creates XForm from given Xsd file
        /// </summary>
        /// <param name="file">Path to Xsd file.</param>
        internal void GenerateFormFromXsdFile(string file)
        {
            _mainPanel.Controls.Clear();
            _xForm = null;

            _controlManager.Clear();//prepare for new rendering

            var xsdParser = new XsdParser();

            _xForm = xsdParser.ParseXsdFile(file);
            _xFormData = xsdParser.ParseXsdFile(file);
            var generateGuiGetGroupBox = _controlManager.GetGroupBoxGui(_xForm.Root, _xFormData.Root);

            _mainPanel.Controls.Add(generateGuiGetGroupBox);
        }