Exemplo n.º 1
0
        public static WindowGame Create(Board board)
        {
            int        windowHeigh = WindowHeigh(board.startY, board.Heigh);
            int        windowWidth = WindowWidth(board.startX, board.Width);
            WindowGame result      = new WindowGame(windowHeigh, windowWidth);

            return(result);
        }
Exemplo n.º 2
0
 public void CleanBoard()
 {
     difficul              = 0;
     size                  = 0;
     Heigh                 = 0;
     Width                 = 0;
     MineCount             = 0;
     FieldCountWithOutMine = 0;
     WindowGame.CLeanWindow();
 }