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