void InitChildSiteSUICPregnant() { _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 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); } } }