Ejemplo n.º 1
0
 // protected BxElementBase() { _carrier = null; _container = null; _config = null; }
 public BxElementSiteBase(IBxCompound container, IBxElementCarrier carrier)
 {
     _container = container;
     _carrier   = carrier;
     if (_carrier != null)
     {
         _idInCarrier = _carrier.ManageElement(this);
     }
     _config = null;
 }
Ejemplo n.º 2
0
 public BxElementSiteBase()
 {
     _container = null;
     _carrier   = null;
     if (_carrier != null)
     {
         _idInCarrier = _carrier.ManageElement(this);
     }
     _config = null;
 }
Ejemplo n.º 3
0
        public override void InitStaticUIConfig(BxXmlUIItem staticItem)
        {
            base.InitStaticUIConfig(staticItem);
            BxXmlUITable t = staticItem.SubItemTable;

            if (t != null)
            {
                _columnConfigs = new IBxUIConfigEx[t.SubColumns.Length];
                BxXmlUIItem item = null;
                for (int i = 0; i < t.SubColumns.Length; i++)
                {
                    item = new BxXmlUIItem(t.SubColumns[i], _staticItem.UIConfigFile);
                    _columnConfigs[i] = new BxUIConfigItemEx(item);
                }
            }
        }
Ejemplo n.º 4
0
        public override void InitFieldInfo(IBxCompound container, FieldInfo info)
        {
            base.InitFieldInfo(container, info);
            //获取Sub element 的配置
            BxXmlUIItem  staticItem = GetXmlUIItem();
            BxXmlUITable t          = staticItem.SubItemTable;

            if (t != null)
            {
                _columnConfigs = new IBxUIConfigEx[t.SubColumns.Length];
                BxXmlUIItem item = null;
                for (int i = 0; i < t.SubColumns.Length; i++)
                {
                    item = new BxXmlUIItem(t.SubColumns[i], _staticItem.UIConfigFile);
                    _columnConfigs[i] = new BxUIConfigItemEx(item);
                }
            }
        }
Ejemplo n.º 5
0
 public BxUIConfigItemEx GetUIConfigItemEx()
 {
     if (_config == null)
     {
         if (_staticItem != null)
         {
             _config = new BxUIConfigItemEx(_staticItem);
         }
         else
         {
             if ((_carrier != null) && (_xmlFileID != null) && (_configItemID != null))
             {
                 _staticItem = new BxXmlUIItem(_configItemID.Value, _xmlFileID, _carrier.UIConfigProvider);
                 _config     = new BxUIConfigItemEx(_staticItem);
             }
         }
     }
     return(_config);
 }
Ejemplo n.º 6
0
 public void InitConfig(BxUIConfigItemEx config)
 {
     _config = config;
 }
Ejemplo n.º 7
0
 public void CreateEmptyConfig(int id)
 {
     _config    = new BxUIConfigItemEx();
     _config.ID = id;
 }