本文整理汇总了VB.NET中System.Workflow.ComponentModel.Design.ParallelActivityDesigner.Verbs属性的典型用法代码示例。如果您正苦于以下问题:VB.NET ParallelActivityDesigner.Verbs属性的具体用法?VB.NET ParallelActivityDesigner.Verbs怎么用?VB.NET ParallelActivityDesigner.Verbs使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。
在下文中一共展示了ParallelActivityDesigner.Verbs属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: CreateActivityVerbs
Private verbsValue As ActivityDesignerVerbCollection = Nothing
Protected Overrides ReadOnly Property Verbs() As ActivityDesignerVerbCollection
Get
If verbsValue Is Nothing Then
CreateActivityVerbs()
End If
Return Me.verbsValue
End Get
End Property
Private Sub CreateActivityVerbs()
Me.verbsValue = New ActivityDesignerVerbCollection()
Dim addBranchVerb As New ActivityDesignerVerb(Me, DesignerVerbGroup.View, "Add New Parallel Branch", AddressOf OnAddParallelBranch)
Me.verbsValue.Clear()
Me.verbsValue.Add(addBranchVerb)
End Sub
Protected Sub OnAddParallelBranch(ByVal sender As Object, ByVal e As EventArgs)
' Code for adding a new branch to the parallel activity goes here
End Sub
开发者ID:VB.NET开发者,项目名称:System.Workflow.ComponentModel.Design,代码行数:25,代码来源:ParallelActivityDesigner.Verbs