Ejemplo n.º 1
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            UploadCell cell = (UploadCell)tableView.DequeueReusableCell(UploadCell.Key, indexPath);

            cell.Tag = indexPath.Row;
            cell.UpdateContent(Rows[indexPath.Row]);//, uploadTask);
            return(cell);
        }
Ejemplo n.º 2
0
        private bool StageUpload(UploadCell tappedCell)
        {
            bool highlighted = ((WrappedCell <PendingPhotoUpload>)tappedCell.BindingContext).IsSelected;

            List <PendingPhotoUpload> hlts = WrappedItems.Where(item => item.IsSelected).Select(wrappedItem => wrappedItem.Item).ToList();

            if (highlighted)
            {
                UpdateToolbar(hlts.Count - 1);
                return(false);
            }
            else
            {
                UpdateToolbar(hlts.Count + 1);
                return(true);
            }
        }