Exemplo n.º 1
0
 /// <summary>
 /// Loads UI definition data from the reader
 /// </summary>
 protected override void LoadFromReader()
 {
     _reader.Read();
     _name = _reader.GetAttribute("name");
     _reader.Read();
     if (_reader.Name == "grid")
     {
         var loader = new XmlUIGridLoader(DtdLoader, _defClassFactory);
         _uiGrid = loader.LoadUIGridDef(_reader.ReadOuterXml());
     }
     if (_reader.Name == "form")
     {
         var loader = new XmlUIFormLoader(DtdLoader, _defClassFactory);
         _uiForm = loader.LoadUIFormDef(_reader.ReadOuterXml());
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Loads UI definition data from the reader
 /// </summary>
 protected override void LoadFromReader()
 {
     _reader.Read();
     _name = _reader.GetAttribute("name");
     _reader.Read();
     if (_reader.Name == "grid")
     {
         var loader = new XmlUIGridLoader(DtdLoader, _defClassFactory);
         _uiGrid = loader.LoadUIGridDef(_reader.ReadOuterXml());
     }
     if (_reader.Name == "form")
     {
         var loader = new XmlUIFormLoader(DtdLoader, _defClassFactory);
         _uiForm = loader.LoadUIFormDef(_reader.ReadOuterXml());
     }
 }
Exemplo n.º 3
0
 protected void Initialise() {
     loader = new XmlUIFormLoader(new DtdLoader(), GetDefClassFactory());
 }