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); }
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); }
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); }
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); }
internal StripItemSelectionGlyph(ActivityPreviewDesigner parentDesigner, System.Workflow.ComponentModel.Design.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; }
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; }