public ActivityDesignerGlyphCollection GetGlyphs(ActivityDesigner activityDesigner) { if (activityDesigner == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("activityDesigner"); } if (!activityDesigner.IsRootDesigner) { return(null); } ActivityDesignerGlyphCollection glyphs = new ActivityDesignerGlyphCollection(); glyphs.Add(new HighlightOverlayGlyph(activityDesigner.Bounds, HighlightedDesigners)); return(glyphs); }
ActivityDesignerGlyphCollection IDesignerGlyphProvider.GetGlyphs(ActivityDesigner activityDesigner) { ActivityDesignerGlyphCollection glyphs = new ActivityDesignerGlyphCollection(); ConnectionPoint[] connectablePoints = this.ConnectablePoints; if (connectablePoints != null) { foreach (ConnectionPoint point in connectablePoints) { if (activityDesigner == point.AssociatedDesigner) { glyphs.Add(new ConnectionPointGlyph(point)); } } } return(glyphs); }