void InitCarrier() { if (_container != null) { _carrier = (_container as IBxElementEx).Carrier; } }
public virtual void InitCarrier(IBxElementCarrier carrier) { if (carrier == null) { throw new NullReferenceException(); } if (_carrier == carrier) { return; } bool bFirstInit = (_carrier == null); _carrier = carrier; if (_childs.Count > 0) { foreach (T one in ChildSites) { if (bFirstInit) { one.InitContainer(this); } one.InitCarrier(_carrier); } } if (bFirstInit) { BxXmlUIItem xmlItem = StaticXmlItem; if (xmlItem != null) { _childs.ForEach(x => x.InitStaticUIConfig(xmlItem)); } } }
public void ResetCarrier(IBxElementCarrier carrier) { _carrier = carrier; if (_dynItem != null) { _dynItem.ResetCarrier(_carrier); } }
//public void InitSite(IBxElementSiteEx site) //{ // Owner = site; //} public virtual void InitCarrier(IBxElementCarrier carrier) { if (_carrier == carrier) { return; } _carrier = carrier; }
//public BxCompoundSite(IBxCompound container, IBxElementCarrier carrier) // : base(container, carrier) //{ // //_value = new T(); // //_value.Owner = this; //} #endregion public override void InitCarrier(IBxElementCarrier carrier) { base.InitCarrier(carrier); if (_value != null) { _value.InitCarrier(carrier); } }
public virtual void InitCarrier(IBxElementCarrier carrier) { _carrier = carrier; if (_staticItem != null) { _staticItem.InitProvider(_carrier.UIConfigProvider); } }
public BxElementSiteBase() { _container = null; _carrier = null; if (_carrier != null) { _idInCarrier = _carrier.ManageElement(this); } _config = null; }
// 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; }
public override void ResetCarrier(IBxElementCarrier carrier) { if (_carrier == carrier) { return; } _carrier = carrier; IBxStaticUIConfigProvider suicProvider = (carrier == null) ? null : carrier.SCICProvider; if (suicProvider == null) { _instanceFields = null; IEnumerable <BxCompoundCoreFieldData> fieldsInfo = Core.GetAllFieldsInfo(); foreach (BxCompoundCoreFieldData one in fieldsInfo) { object field = one.FieldInfo.GetValue(this); if (field is IBxElementSiteInit) { (field as IBxElementSiteInit).ResetCarrier(carrier); (field as IBxElementSiteInit).InitSUICPregnant(one); } if (field is IBxElementSiteVertionType) { (field as IBxElementSiteVertionType).VertionType = one.VersionType; (field as IBxElementSiteVertionType).Version = one.Version; } } } else { if (_instanceFields == null) { _instanceFields = new BxCompoundInstanceData(suicProvider, Core); } else { _instanceFields.ResetSUICProvider(suicProvider); } foreach (BxCompoundFieldData one in InstanceFields.InstanceFields) { object field = one.FieldInfo.GetValue(this); if (field is IBxElementSiteInit) { (field as IBxElementSiteInit).ResetCarrier(carrier); (field as IBxElementSiteInit).InitSUICPregnant(one); } if (field is IBxElementSiteVertionType) { (field as IBxElementSiteVertionType).VertionType = one.VersionType; } } } }
public override void InitCarrier(IBxElementCarrier carrier) { base.InitCarrier(carrier); if (_childs.Count > 0) { foreach (T one in ChildSites) { one.InitCarrier(_carrier); } } }
//public void InitSite(IBxElementSiteEx site) //{ // _site = site; //} public virtual void InitCarrier(IBxElementCarrier carrier) { _carrier = carrier; BxCompoundCore core = Core; IEnumerable <FieldInfo> fieldsInfo = core.GetAllFieldsInfo(); foreach (FieldInfo one in fieldsInfo) { object field = one.GetValue(this); if (field is IBxElementSiteInit) { (field as IBxElementSiteInit).InitCarrier(_carrier); } } }
public override void InitCarrier(IBxElementCarrier carrier) { base.InitCarrier(carrier); //获取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, t.Ratios[i]); // _columnConfigs[i] = new BxUIConfigItemEx(item); // } //} }
public override void ResetCarrier(IBxElementCarrier carrier) { if (_carrier == carrier) { return; } _carrier = carrier; _childSiteSUICPregnant = BxSUICPregnant.Invalid; BxSUICPregnant suicp = ChildSiteSUICPregnant; foreach (IBxElementSite one in ChildSites) { if (one is IBxElementSiteInit) { (one as IBxElementSiteInit).ResetCarrier(carrier); (one as IBxElementSiteInit).InitSUICPregnant(suicp); } } }
public virtual void ResetCarrier(IBxElementCarrier carrier) { //由父节点负责搞定,这里不再需要 //if (_suicPregnant != null) // _suicPregnant.InitSUICProvider(suicProvider); if (_carrier == carrier) { return; } _carrier = carrier; if (_config != null) { _config.ResetCarrier(carrier); } if (Element is IBxElementInit) { (Element as IBxElementInit).ResetCarrier(carrier); } }
public virtual void InitCarrier(IBxElementCarrier carrier) { if (carrier == null) { throw new NullReferenceException(); } if (_carrier == carrier) { return; } bool bFirstInit = (_carrier == null); _carrier = carrier; BxCompoundCore core = Core; IEnumerable <FieldInfo> fieldsInfo = core.GetAllFieldsInfo(); IBxElementSiteInit temp = null; foreach (FieldInfo one in fieldsInfo) { object field = one.GetValue(this); if (field is IBxElementSiteInit) { temp = field as IBxElementSiteInit; if (bFirstInit) { temp.InitFieldInfo(this, one); } temp.InitCarrier(_carrier); } } if (bFirstInit) { OnInit(); } }
public virtual void InitCarrier(IBxElementCarrier carrier) { _carrier = carrier; }
public BxStructValueElementT(IBxElement container, IBxElementCarrier carrier) : base(container, carrier) { }
public BxCompound(IBxElementCarrier carrier) { _carrier = carrier; _InitSubElements(); //InitCarrier(carrier); }
public BxCompoundValue() { _carrier = null; _InitCore(); _InitSubElements(); }
//public BxCompoundValue(IBxElementSite site) //{ // _site = site; // _carrier = site.Carrier; // _InitCore(); // _InitSubElements(); //} public BxCompoundValue(IBxElementCarrier carrier) { _carrier = carrier; _InitCore(); _InitSubElements(); }
public override void InitCarrier(IBxElementCarrier carrier) { base.InitCarrier(carrier); _value.InitConfig(Config); }
public override void InitCarrier(IBxElementCarrier carrier) { _carrier = carrier; _value.InitCarrier(carrier); }
public BxElementGenerousT(IBxElement container, IBxElementCarrier carrier) : base(container, carrier) { }
public BxSimpleElementT(BxCompoundValue container, IBxElementCarrier carrier) : base(container, carrier) { }
public BxUIConfigFromSuic(IBxElementCarrier carrier, IBxStaticUIConfigPregnant suicPregnant) { _carrier = carrier; _suicPregnant = suicPregnant; InitDefaultUnit(); }
public BxInt32Site(IBxCompound container, IBxElementCarrier carrier) : base(container, carrier) { }
public BxElementSiteT(IBxElement container, IBxElementCarrier carrier) : base(container, carrier) { }
//protected #endregion #region functions public void ResetCarrier(IBxElementCarrier carrier) { _carrier = carrier; }
public BxUIConfigItemEx(IBxElementCarrier carrier, IBxStaticUIConfigPregnant suicPregnant) { _carrier = carrier; _suicPregnant = suicPregnant; }