Пример #1
0
 private int ConvertGroupToId(DesignerVerbGroup group)
 {
     if (group == DesignerVerbGroup.General)
     {
         return(WorkflowMenuCommands.VerbGroupGeneral);
     }
     else if (group == DesignerVerbGroup.View)
     {
         return(WorkflowMenuCommands.VerbGroupView);
     }
     else if (group == DesignerVerbGroup.Edit)
     {
         return(WorkflowMenuCommands.VerbGroupEdit);
     }
     else if (group == DesignerVerbGroup.Options)
     {
         return(WorkflowMenuCommands.VerbGroupOptions);
     }
     else if (group == DesignerVerbGroup.Actions)
     {
         return(WorkflowMenuCommands.VerbGroupActions);
     }
     else
     {
         return(WorkflowMenuCommands.VerbGroupMisc);
     }
 }
 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;
 }
 private int ConvertGroupToId(DesignerVerbGroup group)
 {
     if (group == DesignerVerbGroup.General)
     {
         return WorkflowMenuCommands.VerbGroupGeneral;
     }
     if (group == DesignerVerbGroup.View)
     {
         return WorkflowMenuCommands.VerbGroupView;
     }
     if (group == DesignerVerbGroup.Edit)
     {
         return WorkflowMenuCommands.VerbGroupEdit;
     }
     if (group == DesignerVerbGroup.Options)
     {
         return WorkflowMenuCommands.VerbGroupOptions;
     }
     if (group == DesignerVerbGroup.Actions)
     {
         return WorkflowMenuCommands.VerbGroupActions;
     }
     return WorkflowMenuCommands.VerbGroupMisc;
 }
Пример #5
0
 public ActivityDesignerVerb(ActivityDesigner activityDesigner, DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler, EventHandler statusHandler)
     : this(activityDesigner, verbGroup, text, invokeHandler)
 {
     this.statusHandler = statusHandler;
 }
 public ActivityDesignerVerb(ActivityDesigner activityDesigner, DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler, EventHandler statusHandler)
     : this(activityDesigner, verbGroup, text, invokeHandler)
 {
     this.statusHandler = statusHandler;
 }
        public ActivityDesignerVerb(ActivityDesigner activityDesigner, DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler)
            : base(text, new EventHandler(OnExecuteDesignerVerb), new 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, EventHandler statusHandler) : this(activityDesigner, verbGroup, text, invokeHandler)
 {
     this.statusHandler = statusHandler;
 }
 public ActivityDesignerVerb(System.Workflow.ComponentModel.Design.ActivityDesigner activityDesigner, DesignerVerbGroup verbGroup, string text, EventHandler invokeHandler, EventHandler statusHandler) : this(activityDesigner, verbGroup, text, invokeHandler)
 {
     this.statusHandler = statusHandler;
 }