private void panel2_MouseDown(object sender, MouseEventArgs e) { if (activeCommand != null) { activeCommand.MouseDownHandler(e.X, e.Y); } }