예제 #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());
     }
 }
예제 #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());
     }
 }
예제 #3
0
 protected void Initialise() {
     loader = new XmlUIGridLoader(new DtdLoader(), GetDefClassFactory());
 }