AUv3Host.ViewController.GetCell C# (CSharp) Method

GetCell() private method

private GetCell ( UITableView tableView, NSIndexPath indexPath ) : UITableViewCell
tableView UITableView
indexPath NSIndexPath
return UITableViewCell
		public UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			var cell = tableView.DequeueReusableCell ("cell", indexPath);
			if (tableView == AudioUnitTableView) {
				if (indexPath.Row > 0) {
					var component = playEngine.AvailableEffects [indexPath.Row - 1];
					cell.TextLabel.Text = string.Format ("{0} {1}", component.Name, component.ManufacturerName);
				} else
					cell.TextLabel.Text = "(No effect)";

				return cell;
			}

			if (tableView == PresetTableView) {
				cell.TextLabel.Text = playEngine.PresetList [indexPath.Row].Name;
				return cell;
			}

			throw new Exception ("This index path doesn't make sense for this table view.");
		}