Esempio n. 1
0
        public PathGridView(PuzzleData puzzle, int width, int height)
            : base(puzzle, width, height, AppDelegate.UserInterfaceIdiomIsPhone ? CELL_SIZE_IPHONE : CELL_SIZE_IPAD)
        {
            // Create the view
            PathGridViewInternal theView = new PathGridViewInternal(this, new RectangleF(0, 0, width * CellSize, height * CellSize));

            // Create the grid and cells views
            CreateGrid(0, 0, theView);

            GridViewInternal = theView;
        }
Esempio n. 2
0
        public PathGridView(PuzzleData puzzle, int width, int height)
            : base(puzzle, width, height, AppDelegate.UserInterfaceIdiomIsPhone ? CELL_SIZE_IPHONE : CELL_SIZE_IPAD)
        {
            // Create the view
            PathGridViewInternal theView = new PathGridViewInternal (this, new RectangleF (0, 0, width * CellSize, height * CellSize));

            // Create the grid and cells views
            CreateGrid (0,0, theView);

            GridViewInternal = theView;
        }