public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { LiveScoreCell cell = tableView.DequeueReusableCell ("livescorecell") as LiveScoreCell; if (cell == null) { cell = new LiveScoreCell (cellId); }; setCell (cell, indexPath); return cell; }
//--------------------------------------------------------------------------------------------- private void setCell(LiveScoreCell cell, NSIndexPath indexPath) { // cell.TextLabel.TextColor = UIColor.White; // cell.ContentView.BackgroundColor = UIColor.FromRGB (26, 26, 26); // cell.TextLabel.BackgroundColor = UIColor.FromRGB (26, 26, 26); // cell.AccessoryView.BackgroundColor = UIColor.FromRGB (26, 26, 26); // cell.SetLiveScoreCell (items [indexPath.Row].TeamOne, items [indexPath.Row].TeamTwo, items [indexPath.Row].Result, // items [indexPath.Row].LoaderSource,items [indexPath.Row].TimeIndicator,items [indexPath.Row].StartTime); }
private void setCell(LiveScoreCell cell, NSIndexPath indexPath) { cell.SetLiveScoreCell (matches [indexPath.Row].Team1, matches [indexPath.Row].Team2, matches [indexPath.Row].Result, matches [indexPath.Row].State, matches [indexPath.Row].MatchTime); }