Point pt0 = new Point(30, 30);
int width = 30;
var g = pictureBox1.CreateGraphics();
g.Clear(Color.White);
var pen = new Pen(Color.Black);
var brush = new SolidBrush(Color.Black);
g.DrawRectangle(pen, pt0.X, pt0.Y, width * 8, width * 8);
for (int line = 0; line < 4; line++)
{
int i = 0;
for (; i < 4; i++)
{
g.FillRectangle(brush, i * 2 * width + width + pt0.X, 2 * line * width + pt0.Y, width, width);
}
for (i = 0; i < 4; i++)
{
g.FillRectangle(brush, i * 2 * width + pt0.X, 2 * line * width + width + pt0.Y, width, width);
}