private void pictureBox1_MouseMove(object sender, MouseEventArgs e) { if (!(currentHandler is null)) { currentHandler.MouseMove(e.Location); canvas.pictureBox.Invalidate(); } }