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

			if (cell == null)
				cell = new WorkoutCell ();

			cell.BackgroundView = new UIImageView (UIImage.FromFile ("list-element.png"));
			cell.Accessory = UITableViewCellAccessory.None;

			var data = items[indexPath.Row];
			cell.TitleLabel.Text = data.Title;
			cell.Icon.Image = UIImage.FromFile (data.IconFile);
			cell.IconFrame.Image = UIImage.FromFile ("list-item-frame.png");

			cell.Sets.Text = data.Sets;
			cell.Calls.Text = data.Calls;
			cell.Exercises.Text = data.Exercises;
			cell.Duration.Text = data.Duration;

			return cell;
		}
Ejemplo n.º 2
0
		public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			var cell = tableView.DequeueReusableCell ("SearchCell") as WorkoutCell;

			if (cell == null)
				cell = new WorkoutCell ();

			cell.BackgroundView = new UIImageView (UIImage.FromFile ("list-element.png"));
			cell.Accessory = UITableViewCellAccessory.None;

			cell.TitleLabel.Text = filteredItems [indexPath.Row];
			cell.CallsDescription.Text = 
			cell.DurationDescription.Text = 
			cell.ExercisesDescription.Text = 
			cell.SetsDescription.Text = 
			cell.Sets.Text =
			cell.Calls.Text =
			cell.Duration.Text =
			cell.Exercises.Text = string.Empty;					

			cell.Icon.Image = UIImage.FromFile ("list-item-icon1.png");
			
			return cell;
		}