/// <summary> /// Overrides <see cref="IShowPropertyImpl.Added"/> /// </summary> /// <param name="propertyTreeView"></param> public override void Added(IPropertyPage propertyTreeView) { base.Added(propertyTreeView); //propertyTreeView.FocusChangedEvent += new FocusChangedDelegate(OnFocusChanged); for (int i = 0; i < layout.Patches.Length; ++i) { LayoutPatch lp = layout.Patches[i]; lp.Connect(layout, project, this); } }
public void AddPatch(Model model, Projection projection, Border area, LayoutView layoutView) { ArrayList al = new ArrayList(patches); LayoutPatch newPatch = new LayoutPatch(model, projection, area); foreach (Layer l in project.LayerList) { // alle Layer sichtbar newPatch.visibleLayers[l] = null; } al.Add(newPatch); if (layoutView != null) { newPatch.Connect(this, project, layoutView); } patches = (LayoutPatch[])al.ToArray(typeof(LayoutPatch)); }