コード例 #1
0
        public Tool SetCurrentTool(ActivityType type)
        {
            Tool tool = null;

            switch (type)
            {
            case ActivityType.START:
                tool = new StartActivityTool();
                break;

            case ActivityType.END:
                tool = new EndActivityTool();
                break;

            case ActivityType.MANUAL:
                tool = new ManualActivityTool();
                break;

            case ActivityType.SELECT:
                tool = new SelectorTool();
                break;

            case ActivityType.LINE:
                tool = new LineActivityTool();
                break;
            }
            return(tool);
        }
コード例 #2
0
 private void WorkflowControl_Load(object sender, EventArgs e)
 {
     CurrentTool = new SelectorTool();
     OnInit(sender, e);
 }