Пример #1
0
        internal void FillDiff(Panel PanelMethy, string fileName)
        {
            Graphics g = PanelMethy.CreateGraphics();
            Square square = new Square();

            for (int j = 0; j < Column; j++)
            {
                g.FillRectangle(new SolidBrush(square.JudgeGridD(0, j, fileName)), PanelMethy.Width / Column * j + 2,
                        1, 7, 8);
            }
        }
Пример #2
0
        internal void FillSquare(Panel PanelMethy)
        {
            Graphics g = PanelMethy.CreateGraphics();
            Square square = new Square();

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