Inheritance: UITableViewCell
コード例 #1
0
        MemorizationCell GetMemorizationCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell       = tableView.DequeueReusableCell(MEMORIZATION_CELL) as MemorizationCell;
            var verse      = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];

            if (cell == null)
            {
                cell = new MemorizationCell(MEMORIZATION_CELL);
            }

            cell.PopulateCell(verse);
            cell.ShowSelectedImage(isSelected);

            return(cell);
        }
コード例 #2
0
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            selected [indexPath.Row] = !selected [indexPath.Row];

            var item       = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];

            if (isSelected)
            {
                selectedVerses.Add(item);
            }
            else
            {
                selectedVerses.Remove(item);
            }

            cell.ShowSelectedImage(isSelected);
        }
コード例 #3
0
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            if (Tour.Instance.Step == 5)
            {
                Tour.Instance.StepCompleted(5);
            }

            selected [indexPath.Row] = !selected [indexPath.Row];

            var item       = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];

            if (isSelected)
            {
                selectedVerses.Add(item);
            }
            else
            {
                selectedVerses.Remove(item);
            }

            cell.ShowSelectedImage(isSelected);
        }
コード例 #4
0
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            selected [indexPath.Row] = !selected [indexPath.Row];

            var item = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];
            if (isSelected) {
                selectedVerses.Add (item);
            } else {
                selectedVerses.Remove (item);
            }

            cell.ShowSelectedImage (isSelected);
        }
コード例 #5
0
        MemorizationCell GetMemorizationCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell (MEMORIZATION_CELL) as MemorizationCell;
            var verse = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];

            if (cell == null) {
                cell = new MemorizationCell (MEMORIZATION_CELL);
            }

            cell.PopulateCell (verse);
            cell.ShowSelectedImage (isSelected);

            return cell;
        }
コード例 #6
0
        void HandleMemorizationCellTapped(MemorizationCell cell, NSIndexPath indexPath)
        {
            if (Tour.Instance.Step == 5) {
                Tour.Instance.StepCompleted (5);
            }

            selected [indexPath.Row] = !selected [indexPath.Row];

            var item = data [indexPath.Row];
            var isSelected = selected [indexPath.Row];
            if (isSelected) {
                selectedVerses.Add (item);
            } else {
                selectedVerses.Remove (item);
            }

            cell.ShowSelectedImage (isSelected);
        }