Beispiel #1
0
        public ChooseGridSizeEventArgs(string gridSize)
        {
            switch (gridSize)
            {
            case "4":
                GridSize = GridSizeOptions.GRID_SIZES.SMALL;
                break;

            case "6":
                GridSize = GridSizeOptions.GRID_SIZES.MEDIUM;
                break;

            case "8":
                GridSize = GridSizeOptions.GRID_SIZES.LARGE;
                break;

            default:
                break;
            }
        }
Beispiel #2
0
 public MemoryGrid(System.Windows.Controls.Grid grid, GridSizeOptions.GRID_SIZES gridSize)
 {
     Grid     = grid;
     GridSize = gridSize;
     InitializeGameGrid();
 }