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) { 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) { 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); }