public void InitConfig(BxXmlUIItem staticItem) { _staticItem = staticItem; if (_config != null) { _config.XmlItem = _staticItem; } }
public void InitConfigID(string xmlFileID, Int32 itemID) { _xmlFileID = xmlFileID; _configItemID = itemID; if (_config != null) { _staticItem = new BxXmlUIItem(_configItemID.Value, _xmlFileID, _carrier.UIConfigProvider); _config.XmlItem = _staticItem; } else { _staticItem = null; } }
BxUIConfigItemEx GetUIConfigItemEx() { if (_config == null) { if (_staticItem != null) { _config = new BxUIConfigItemEx(_staticItem); } else { if ((_xmlFileID != null) && (_configItemID != null)) { BxXmlUIItem item = new BxXmlUIItem(_configItemID.Value, _xmlFileID, _carrier.UIConfigProvider); _config = new BxUIConfigItemEx(item); } } } return(_config); }