public SessionDetailsSource(Session session) { var cellId = "section1"; sectionData = new List<SessionSectionData> { new SessionSectionData (cellId) { Title = "Session", Data = new List<UITableViewCell> { new TextWrapCell(session.Title, UIFont.FromName("Helvetica-Bold", 14f), 275, cellId), new HeaderValueCell ("Speaker", session.SpeakerName, cellId), new HeaderValueCell ("Track", session.Track, cellId), new HeaderValueCell ("Time", session.Time.ToString ("h:mm"), cellId), new HeaderValueCell ("Room", session.Room, cellId) } }, new SessionSectionData (cellId) { Title = "Description", Data = new List<UITableViewCell> { new SessionTitleCell(session.Description, cellId) } } }; }
public SessionDetailsController(Session session) : base(UITableViewStyle.Grouped) { Session = session; }