Пример #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);
        }
Пример #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);
        }
Пример #3
0
        partial void OnButtonPlayPressed(MonoTouch.Foundation.NSObject sender)
        {
            MenuPlayViewController playVc = ParentViewController as MenuPlayViewController;

            playVc.PlaySelectedPuzzle();
        }