Beispiel #1
0
            public override AccessibleObject GetChild(int index)
            {
                ActivityPreviewDesigner activityDesigner = base.ActivityDesigner as ActivityPreviewDesigner;

                if ((activityDesigner == null) || (activityDesigner.ActiveDesigner != activityDesigner))
                {
                    return(base.GetChild(index));
                }
                if (index < activityDesigner.previewStrip.AccessibilityObjects.Length)
                {
                    return(activityDesigner.previewStrip.AccessibilityObjects[index]);
                }
                index -= activityDesigner.previewStrip.AccessibilityObjects.Length;
                if (activityDesigner.ShowPreview && (index == 0))
                {
                    return(activityDesigner.previewWindow.AccessibilityObject);
                }
                AccessibleObject accessibilityObject = activityDesigner.PreviewedDesigner.AccessibilityObject;

                while (accessibilityObject.Bounds.Size.IsEmpty && (accessibilityObject.GetChildCount() > 0))
                {
                    accessibilityObject = accessibilityObject.GetChild(0);
                }
                return(accessibilityObject);
            }
 public PreviewItemStrip(ActivityPreviewDesigner parentDesigner)
 {
     if (parentDesigner == null)
     {
         throw new ArgumentNullException("parentDesigner");
     }
     this.parentDesigner = parentDesigner;
     this.items = new ItemList<System.Workflow.ComponentModel.Design.ItemInfo>(this);
     this.items.ListChanging += new ItemListChangeEventHandler<System.Workflow.ComponentModel.Design.ItemInfo>(this.OnItemsChanging);
     this.items.ListChanged += new ItemListChangeEventHandler<System.Workflow.ComponentModel.Design.ItemInfo>(this.OnItemsChanged);
 }
Beispiel #3
0
 public PreviewItemStrip(ActivityPreviewDesigner parentDesigner)
 {
     if (parentDesigner == null)
     {
         throw new ArgumentNullException("parentDesigner");
     }
     this.parentDesigner      = parentDesigner;
     this.items               = new ItemList <System.Workflow.ComponentModel.Design.ItemInfo>(this);
     this.items.ListChanging += new ItemListChangeEventHandler <System.Workflow.ComponentModel.Design.ItemInfo>(this.OnItemsChanging);
     this.items.ListChanged  += new ItemListChangeEventHandler <System.Workflow.ComponentModel.Design.ItemInfo>(this.OnItemsChanged);
 }
Beispiel #4
0
            public override int GetChildCount()
            {
                int num = 0;
                ActivityPreviewDesigner activityDesigner = base.ActivityDesigner as ActivityPreviewDesigner;

                if ((activityDesigner != null) && (activityDesigner.ActiveDesigner == activityDesigner))
                {
                    num += activityDesigner.previewStrip.AccessibilityObjects.Length;
                    if (activityDesigner.ShowPreview)
                    {
                        num++;
                    }
                    if ((!activityDesigner.ShowPreview || activityDesigner.previewWindow.PreviewMode) && activityDesigner.ShowPreview)
                    {
                        return(num);
                    }
                    num++;
                }
                return(num);
            }
Beispiel #5
0
            public override int GetChildCount()
            {
                int childCount = 0;

                ActivityPreviewDesigner activityCollectionDesigner = base.ActivityDesigner as ActivityPreviewDesigner;

                if (activityCollectionDesigner != null && activityCollectionDesigner.ActiveDesigner == activityCollectionDesigner)
                {
                    childCount += activityCollectionDesigner.previewStrip.AccessibilityObjects.Length;

                    if (activityCollectionDesigner.ShowPreview)
                    {
                        childCount += 1;
                    }

                    if ((activityCollectionDesigner.ShowPreview && !activityCollectionDesigner.previewWindow.PreviewMode) ||
                        (!activityCollectionDesigner.ShowPreview))
                    {
                        childCount += 1;
                    }
                }

                return(childCount);
            }
Beispiel #6
0
 internal StripItemSelectionGlyph(ActivityPreviewDesigner parentDesigner, System.Workflow.ComponentModel.Design.ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item           = item;
 }
Beispiel #7
0
 public ActivityCollectionAccessibleObject(ActivityPreviewDesigner activityDesigner) : base(activityDesigner)
 {
 }
 public PreviewWindow(ActivityPreviewDesigner parent)
 {
     this.parentDesigner = parent;
     this.serviceProvider = this.parentDesigner.Activity.Site;
 }
        public PreviewItemStrip(ActivityPreviewDesigner parentDesigner)
        {
            Debug.Assert(parentDesigner != null);
            if (parentDesigner == null)
                throw new ArgumentNullException("parentDesigner");

            this.parentDesigner = parentDesigner;
            this.items = new ItemList<ItemInfo>(this);
            this.items.ListChanging += new ItemListChangeEventHandler<ItemInfo>(OnItemsChanging);
            this.items.ListChanged += new ItemListChangeEventHandler<ItemInfo>(OnItemsChanged);
        }
 internal StripItemConfigErrorGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item = item;
     Debug.Assert(item.UserData[DesignerUserDataKeys.Activity] is Activity);
 }
 internal StripItemCommentGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item = item;
 }
 public ActivityCollectionAccessibleObject(ActivityPreviewDesigner activityDesigner)
     : base(activityDesigner)
 {
 }
 public PreviewWindow(ActivityPreviewDesigner parent)
 {
     this.parentDesigner  = parent;
     this.serviceProvider = this.parentDesigner.Activity.Site;
 }
 internal StripItemSelectionGlyph(ActivityPreviewDesigner parentDesigner, System.Workflow.ComponentModel.Design.ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item = item;
 }
Beispiel #15
0
 internal StripItemConfigErrorGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item           = item;
     Debug.Assert(item.UserData[DesignerUserDataKeys.Activity] is Activity);
 }
Beispiel #16
0
 internal StripItemCommentGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item           = item;
 }