상속: 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);
        }
        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);
        }
        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;
        }
        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);
        }