public override void PrepareForSegue(UIStoryboardSegue segue, Foundation.NSObject sender) { var year = Years.ElementAt(TableView.IndexPathForSelectedRow.Row); if (segue.Identifier == "TeamsSegue" || segue.Identifier == "LeaguesSegue") { var vc = segue.DestinationViewController as SexChooserViewController; vc.Date = new DateTime(year, 1, 1); } }
public override UITableViewCell GetCell(UITableView tableView, Foundation.NSIndexPath indexPath) { var cell = tableView.DequeueReusableCell("yearcell", indexPath); var date = Years.ElementAt(indexPath.Row); cell.TextLabel.Text = date + "-" + (date + 1); return(cell); }