Ejemplo n.º 1
0
        public void DrawAllFigures(Figures[,] board)
        {
            int style = Fileworker.GetStyle();

            for (int i = 0; i < 8; i++)
            {
                for (int j = 0; j < 8; j++)
                {
                    if (board[i, j] != Figures.Empty)
                    {
                        CreateFigure(i, j, board[i, j], style);
                    }
                }
            }
        }
Ejemplo n.º 2
0
 private string GetStylePath()
 {
     return(Directory.GetDirectories(path + "\\images\\styles")[Fileworker.GetStyle()] + "\\");
 }
Ejemplo n.º 3
0
 public void Set(ChessLogic.Point cell, Figures figure)
 {
     CreateFigure(cell.x, cell.y, figure, Fileworker.GetStyle());
 }