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); }
private void WorkflowControl_Load(object sender, EventArgs e) { CurrentTool = new SelectorTool(); OnInit(sender, e); }