Esempio n. 1
0
        public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.CellForItem(indexPath) as PuzzlesListCellViewController;

            cell.UnsetSelected();

            MenuPlayViewController menu = ParentViewController as MenuPlayViewController;

            menu.SetSelectedPuzzle(null);
        }
Esempio n. 2
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            lastSelectedCell.UnsetSelected();

            var cell = collectionView.CellForItem(indexPath) as PuzzlesListCellViewController;

            lastSelectedCell = cell;
            cell.SetSelected();

            var puzzle = GetPuzzleForPath(indexPath);

            MenuPlayViewController menu = ParentViewController as MenuPlayViewController;

            menu.SetSelectedPuzzle(puzzle);
        }
Esempio n. 3
0
        partial void OnButtonPlayPressed(MonoTouch.Foundation.NSObject sender)
        {
            MenuPlayViewController playVc = ParentViewController as MenuPlayViewController;

            playVc.PlaySelectedPuzzle();
        }