コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
            }
コード例 #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);
            }
コード例 #6
0
 internal StripItemSelectionGlyph(ActivityPreviewDesigner parentDesigner, System.Workflow.ComponentModel.Design.ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item           = item;
 }
コード例 #7
0
 public ActivityCollectionAccessibleObject(ActivityPreviewDesigner activityDesigner) : base(activityDesigner)
 {
 }
コード例 #8
0
 public PreviewWindow(ActivityPreviewDesigner parent)
 {
     this.parentDesigner = parent;
     this.serviceProvider = this.parentDesigner.Activity.Site;
 }
コード例 #9
0
        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);
        }
コード例 #10
0
 internal StripItemConfigErrorGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item = item;
     Debug.Assert(item.UserData[DesignerUserDataKeys.Activity] is Activity);
 }
コード例 #11
0
 internal StripItemCommentGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item = item;
 }
コード例 #12
0
 public ActivityCollectionAccessibleObject(ActivityPreviewDesigner activityDesigner)
     : base(activityDesigner)
 {
 }
コード例 #13
0
 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;
 }
コード例 #15
0
 internal StripItemConfigErrorGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item           = item;
     Debug.Assert(item.UserData[DesignerUserDataKeys.Activity] is Activity);
 }
コード例 #16
0
 internal StripItemCommentGlyph(ActivityPreviewDesigner parentDesigner, ItemInfo item)
 {
     this.parentDesigner = parentDesigner;
     this.item           = item;
 }