Esempio n. 1
0
 /// <summary>
 /// Creates and returns the XML Schema definition for the SpRuDeL reports
 /// with a ValidationCallback which reports errors to the UI.
 /// </summary>
 /// <returns>The corresponding XmlSchemaSet</returns>
 public XmlSchemaSet getReportSchema()
 {
     if (report == null)
     {
         var sprudel = XmlReader.Create(new StringReader(SchemaStrings.getReportXSD()));
         report = new XmlSchemaSet();
         report.Add(string.Empty, sprudel);
         report.ValidationEventHandler += ValidationCallback;
     }
     return(report);
 }
Esempio n. 2
0
 /// <summary>
 /// Creates and returns the XML Schema definition for the SpRuDeL requests
 /// with a ValidationCallback which reports errors to the UI.
 /// </summary>
 /// <returns>The corresponding XmlSchemaSet</returns>
 public XmlSchemaSet GetRequestSchema()
 {
     if (request == null)
     {
         var sprudel = XmlReader.Create(new StringReader(SchemaStrings.getRequestXSD()));
         request = new XmlSchemaSet();
         request.Add("", sprudel);
         request.ValidationEventHandler += ValidationCallback;
     }
     return(request);
 }