public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
 {
     UITableViewCell cell = tableView.DequeueReusableCell (kCellIdentifier);
     if (cell == null)
     {
         cell = new UITableViewCell (UITableViewCellStyle.Default, kCellIdentifier);
     }
     cell.TextLabel.Text = _locations[indexPath.Row].Title;
     cell.Accessory = UITableViewCellAccessory.None;
     return cell;
 }
 public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
 {
     UITableViewCell cell = tableView.DequeueReusableCell (kCellIdentifier);
     if (cell == null) {
         cell = new UITableViewCell (UITableViewCellStyle.Default, kCellIdentifier);
         AppDelegate.GetCellSelectedColor (cell);
     }
     var s = sectionElements[indexPath.Section][indexPath.Row];
     cell.TextLabel.Text = s.Name;
     return cell;
 }
        public override UITableViewCell GetCell(UITableView tv)
        {
            var cell = tv.DequeueReusableCell (key);
            count++;
            if (cell == null)
            {
                cell = new SessionCell (UITableViewCellStyle.Subtitle, key, session, Caption, subtitle);
            }
            else
                ((SessionCell)cell).UpdateCell (session, Caption, subtitle);

            return cell;
        }
 public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
 {
     MIX10Xml.Session s = _svc.Sessions[indexPath.Row];
     bool star = _svc.FavoriteCodes.Contains(s.Code);
     UITableViewCell cell = null;
     if (star)
     {
         cell = tableView.DequeueReusableCell ("star");
         if (cell == null)
         {
             cell = new UITableViewCell(UITableViewCellStyle.Subtitle, "star");
         }
         cell.ImageView.Image = starImage;
         cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
     }
     else
     {
         cell = tableView.DequeueReusableCell ("plain");
         if (cell == null)
         {
             cell = new UITableViewCell(UITableViewCellStyle.Subtitle, "plain");
         }
         cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
     }
     try
     {
         cell.TextLabel.Text = s.Title;
         cell.DetailTextLabel.Text = s.GetSpeakerList();
     } catch (Exception){}
     return cell;
 }
            public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
            {
                UITableViewCell cell = tableView.DequeueReusableCell (kCellIdentifier);
                var s = _slots[indexPath.Row];
                SessionCellController cellController = null;

                if (cell == null) {
                    cellController = new SessionCellController ();
                    NSBundle.MainBundle.LoadNib ("SessionCellController", cellController, null);
                    cell = cellController.Cell;
                    cell.Tag = Environment.TickCount;
                    //HACK: fix this crappy hack
                    controllers.Add (cell.Tag, cellController);
                } else {
                    cellController = controllers[cell.Tag];
                }
                if (s.Title == "Workshops" || s.Title == "Sessions")
                    cell.Accessory = UITableViewCellAccessory.DetailDisclosureButton; else if (!String.IsNullOrEmpty (s.Brief))
                    cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
                else
                    cell.Accessory = UITableViewCellAccessory.None;
                try {
                    Debug.WriteLine ("Original time: " + s.StartTime.ToString ());
                    Debug.WriteLine ("Universal time: " + s.StartTime.ToUniversalTime ().ToString ());
                    Debug.WriteLine ("Local time: " + s.StartTime.ToLocalTime ().ToString ());
                    cellController.SessionTitle = s.Title;
                    cellController.Subtitle = "";
                    // TODO: chosen one?
                    cellController.Time = s.StartTime.ToUniversalTime ().ToString ("HH:mm");
                    if (s.StartTime.ToUniversalTime () == s.EndTime.ToUniversalTime ())
                        cellController.EndTime = "";
                    else
                        cellController.EndTime = s.EndTime.ToUniversalTime ().ToString ("HH:mm");
                } catch (Exception) {
                }
                return cell;
            }
            public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
            {
                UITableViewCell cell = tableView.DequeueReusableCell (kCellIdentifier);
                if (cell == null)
                {
                    cell = new UITableViewCell (UITableViewCellStyle.Default, kCellIdentifier);
                }
                string date = _dates[indexPath.Row].Date.ToString("dd-MMM dddd");

                cell.TextLabel.Text = date;
                cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
                return cell;
            }