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); }
public void CleanBoard() { difficul = 0; size = 0; Heigh = 0; Width = 0; MineCount = 0; FieldCountWithOutMine = 0; WindowGame.CLeanWindow(); }