Exemplo n.º 1
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var        views = NSBundle.MainBundle.LoadNib("MealTWCell_iPhone", tableView, null);
            MealTWCell cell  = Runtime.GetNSObject(views.ValueAt(0)) as MealTWCell;

            cell.m_bChecked     = m_tableItems[indexPath.Row].m_bInBasket;
            cell.m_bGrayBackgnd = indexPath.Row % 2 == 0 ? true : false;
            cell.update(indexPath.Row);
            cell.UpdateCell(m_tableItems[indexPath.Row].m_meal.Name,
                            m_tableItems[indexPath.Row].m_qty.ToString(),
                            m_tableItems[indexPath.Row].m_meal.MealDesc);
            return(cell);
        }