private void panelWorkflow_MouseDown(object sender, MouseEventArgs e) { Focus(); if (e.Button == MouseButtons.Left) { CurrentTool.OnMouseDown(e.X, e.Y); CurrentTool.AfterActivityCreate(); } }