private void PatternEditor_Paint(object sender, PaintEventArgs e) { DrawPattern(e.Graphics); if (ShowGrid) DrawGrid(e.Graphics); }