csharp System.Workflow.ComponentModel.Design.ParallelActivityDesigner.Verbs类(方法)实例源码

下面列出了csharp System.Workflow.ComponentModel.Design.ParallelActivityDesigner.Verbs 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Workflow.ComponentModel.Desig   
private ActivityDesignerVerbCollection verbs = null;

protected override ActivityDesignerVerbCollection Verbs
{
    get
    {
        if (this.verbs == null)
            CreateActivityVerbs();

        return this.verbs;
    }
}

private void CreateActivityVerbs()
{
    this.verbs = new ActivityDesignerVerbCollection();

    ActivityDesignerVerb addBranchVerb = new ActivityDesignerVerb(this,
        DesignerVerbGroup.View, "Add New Parallel Branch", new EventHandler(OnAddParallelBranch));
    this.verbs.Clear();

    this.verbs.Add(addBranchVerb);
}

protected void OnAddParallelBranch(object sender, EventArgs e)
{
    // Code for adding a new branch to the parallel activity goes here
}


问题


面经


文章

微信
公众号

扫码关注公众号