MonoMobile.Views.ViewSource.GetCell C# (CSharp) Method

GetCell() public method

public GetCell ( UITableView tableView, NSIndexPath indexPath ) : UITableViewCell
tableView UITableView
indexPath NSIndexPath
return UITableViewCell
		public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
		{
			MemberData memberData = null;
			UITableViewCell cell = null;

			if (PerformActionIfCellListElement(cell, indexPath, (listSource) => 
			{
				memberData = listSource.MemberData;
				cell = listSource.GetCell(tableView, NSIndexPath.FromRowSection(indexPath.Row -  memberData.Order, indexPath.Section));
			}))
			{
				return cell;
			}

			memberData = GetMemberData(indexPath);

			cell = CellFactory.GetCell(tableView, indexPath, memberData.Id, NibName, (cellId, idxPath) => NewCell(cellId, idxPath));

			UpdateCell(cell, indexPath);

			return cell;
		}