private void canvas_Paint(object sender, PaintEventArgs e) { grid.Draw(e.Graphics, colors); if (solution != null) { solution.Draw(e.Graphics, colors); } }