internal override void Attach(LegendTree legendTree) { //base.Attach(legendTree); LayerItems.ForEach((layerLegendInfo) => ((LayerLegendItemInfo)layerLegendInfo).Attach(legendTree)); this.Template = legendTree.MapLayerTemplate; }
internal virtual void Attach(LegendTree legendTree) { LegendTree = legendTree; if (legendTree != null) { Template = GetTemplate(); } }
internal override void Attach(LegendTree legendTree) { if (legendTree != null) { LayerItems.ForEach<LegendItemInfo>((legendItem) => legendItem.Attach(legendTree)); this.Template = legendTree.LayerTemplate; } }
internal override void Attach(LegendTree legendTree) { if (legendTree == null) { return; } base.Attach(legendTree); LayerItemsOptions = legendTree.LayerItemsOptions; LayerItems.ForEach(item => item.Attach(legendTree)); LegendItems.ForEach(item => item.Attach(legendTree)); }
internal virtual void Detach() { LegendTree = null; }
internal override void Attach(LegendTree legendTree) { if (legendTree == null) return; base.Attach(legendTree); LayerItemsOptions = legendTree.LayerItemsOptions; LayerItems.ForEach(item => item.Attach(legendTree)); LegendItems.ForEach(item => item.Attach(legendTree)); }