public void loadFromXML(XmlTextReader aXMLTextReader) { var lReader = new XMLAttributeReader(aXMLTextReader); Language = lReader.getAttribute <String>("Language"); mValueItemHandle = mItemBrowser.getItemHandleByName(lReader.getAttribute <String>("Item")); mHolder.clear(); if (aXMLTextReader.IsEmptyElement == false) { aXMLTextReader.Read(); if (aXMLTextReader.Name.Equals("Commands", StringComparison.Ordinal)) { if (aXMLTextReader.IsEmptyElement == false) { mHolder.loadFromXML(aXMLTextReader, "Comand"); } aXMLTextReader.Read(); } } if (mHolder.Count == 0) { mHolder.add("Ok, Dave.", 0, false); } }
public void loadFromXML(XmlTextReader aXMLTextReader) { mHolder.clear(); if (aXMLTextReader.IsEmptyElement == false) { aXMLTextReader.Read(); if (aXMLTextReader.Name.Equals("ItemList", StringComparison.Ordinal)) { if (aXMLTextReader.IsEmptyElement == false) { mHolder.loadFromXML(aXMLTextReader, "Item"); } aXMLTextReader.Read(); } } if (mHolder.Count == 0) { mHolder.add("Current value", mObjectValue.ValueObject, false); } }