public ParseXsdFile ( string fileName ) : |
||
fileName | string | Path to Xsd file. |
Результат |
/// <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); }
public void CanParseXFormFromXmlFileMoveCopySettingsXsd() { //asign var xsdParser = new XsdParser(); //action var xForm = xsdParser.ParseXsdFile("MoveCopySettings.xsd"); //assert Assert.NotNull(xForm); }
public void CanParseXFormFromXmlFileDocumentumArchivageSettingsXsd() { //asign var xsdParser = new XsdParser(); //action var xForm = xsdParser.ParseXsdFile("DocumentumArchivageSettings.xsd"); //assert Assert.NotNull(xForm); }
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); }