public void loadFromXML(XmlTextReader aXMLTextReader) { var lReader = new XMLAttributeReader(aXMLTextReader); if (aXMLTextReader.IsEmptyElement == false) { aXMLTextReader.Read(); string lStateName; CSScipt lScript; while (aXMLTextReader.Name.Equals("State", StringComparison.Ordinal) && aXMLTextReader.IsStartElement()) { lStateName = lReader.getAttribute <string>("Name"); lScript = new CSScipt(mItemBrowser); try { lScript.loadFromXML(aXMLTextReader); } catch (Exception lExc) { throw new ArgumentException("State '" + lStateName + "'. " + lExc.Message, lExc); } addState(lStateName, lScript); aXMLTextReader.Read(); aXMLTextReader.Read(); } } check(); }
public void loadFromXML(XmlTextReader aXMLTextReader) { mCSScript.loadFromXML(aXMLTextReader); }