/// <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()); } }
protected void Initialise() { loader = new XmlUIGridLoader(new DtdLoader(), GetDefClassFactory()); }