Beispiel #1
0
 public void InitConfig(BxXmlUIItem staticItem)
 {
     _staticItem = staticItem;
     if (_config != null)
     {
         _config.XmlItem = _staticItem;
     }
 }
Beispiel #2
0
 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;
     }
 }
Beispiel #3
0
 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);
 }