private void pictureBox1_MouseUp(object sender, MouseEventArgs e) { if (!(currentHandler is null)) { if (e.Button == MouseButtons.Left) { currentHandler.MouseUp(); isMouseMoving = false; } } }