Exemplo n.º 1
0
        internal void FillSquare(Panel pnlDiff, int[,] reads, int[] diff)
        {
            Graphics g = pnlDiff.CreateGraphics();
            Square square = new Square();

            for (int j = 0; j < Column; j++)
            {
                g.FillRectangle(new SolidBrush(square.JudgeGrid(j, diff)), pnlDiff.Width / Column * j + 2,
                        1, 4, 8);
                for (int i = 1; i < Row; i++)
                {
                    g.FillRectangle(new SolidBrush(square.MyGrid(i, j, reads)), pnlDiff.Width / Column * j + 2,
                        pnlDiff.Height / Row * i + 2, 4, 8);
                }
            }
        }