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);
            }
Пример #2
0
        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);
        }
        internal ActivityDesignerGlyphCollection GetDesignerGlyphs(ActivityDesigner designer)
        {
            ActivityDesignerGlyphCollection glyphs = new ActivityDesignerGlyphCollection();

            if (designer.Glyphs != null)
            {
                glyphs.AddRange(designer.Glyphs);
            }
            foreach (IDesignerGlyphProvider provider in this.designerGlyphProviders)
            {
                ActivityDesignerGlyphCollection collection = provider.GetGlyphs(designer);
                if (collection != null)
                {
                    glyphs.AddRange(collection);
                }
            }
            glyphs.Sort(new Comparison <DesignerGlyph>(DesignerGlyph.OnComparePriority));
            return(glyphs);
        }
Пример #4
0
 public ActivityDesignerGlyphCollection(ActivityDesignerGlyphCollection glyphs) : base(glyphs)
 {
 }