public ActivityDesignerAccessibleObject(System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner)
 {
     if (activityDesigner == null)
     {
         throw new ArgumentNullException("activityDesigner");
     }
     if (activityDesigner.Activity == null)
     {
         throw new ArgumentException(DR.GetString("DesignerNotInitialized", new object[0]), "activityDesigner");
     }
     this.activityDesigner = activityDesigner;
 }
 public ActivityDesignerAccessibleObject(System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner)
 {
     if (activityDesigner == null)
     {
         throw new ArgumentNullException("activityDesigner");
     }
     if (activityDesigner.Activity == null)
     {
         throw new ArgumentException(DR.GetString("DesignerNotInitialized", new object[0]), "activityDesigner");
     }
     this.activityDesigner = activityDesigner;
 }
 public ActivityDesignerVerb(System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler) : base(text, new EventHandler(ActivityDesignerVerb.OnExecuteDesignerVerb), new System.ComponentModel.Design.CommandID(WorkflowMenuCommands.MenuGuid, 0))
 {
     if ((text == null) || (text.Length == 0))
     {
         throw new ArgumentNullException("text");
     }
     if (invokeHandler == null)
     {
         throw new ArgumentNullException("invokeHandler");
     }
     this.verbGroup = verbGroup;
     this.invokeHandler = invokeHandler;
     this.activityDesigner = activityDesigner;
 }
 public ActivityDesignerVerb(System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler) : base(text, new EventHandler(ActivityDesignerVerb.OnExecuteDesignerVerb), new System.ComponentModel.Design.CommandID(WorkflowMenuCommands.MenuGuid, 0))
 {
     if ((text == null) || (text.Length == 0))
     {
         throw new ArgumentNullException("text");
     }
     if (invokeHandler == null)
     {
         throw new ArgumentNullException("invokeHandler");
     }
     this.verbGroup        = verbGroup;
     this.invokeHandler    = invokeHandler;
     this.activityDesigner = activityDesigner;
 }
        public override AccessibleObject Navigate(AccessibleNavigation navdir)
        {
            if (navdir == AccessibleNavigation.FirstChild)
            {
                return(this.GetChild(0));
            }
            if (navdir == AccessibleNavigation.LastChild)
            {
                return(this.GetChild(this.GetChildCount() - 1));
            }
            CompositeActivityDesigner parentDesigner = this.activityDesigner.ParentDesigner;

            if (parentDesigner != null)
            {
                DesignerNavigationDirection down = DesignerNavigationDirection.Down;
                if (navdir == AccessibleNavigation.Left)
                {
                    down = DesignerNavigationDirection.Left;
                }
                else if (navdir == AccessibleNavigation.Right)
                {
                    down = DesignerNavigationDirection.Right;
                }
                else if ((navdir == AccessibleNavigation.Up) || (navdir == AccessibleNavigation.Previous))
                {
                    down = DesignerNavigationDirection.Up;
                }
                else if ((navdir == AccessibleNavigation.Down) || (navdir == AccessibleNavigation.Next))
                {
                    down = DesignerNavigationDirection.Down;
                }
                System.Workflow.ComponentModel.Design.ActivityDesigner designer = System.Workflow.ComponentModel.Design.ActivityDesigner.GetDesigner(parentDesigner.GetNextSelectableObject(this.activityDesigner.Activity, down) as Activity);
                if (designer != null)
                {
                    return(designer.AccessibilityObject);
                }
            }
            return(base.Navigate(navdir));
        }
 public ActivityDesignerVerb(System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler, EventHandler statusHandler) : this(activityDesigner, verbGroup, text, invokeHandler)
 {
     this.statusHandler = statusHandler;
 }