public void ShowDetail (CustomCell cell) { this.itemTitle.Text = cell.Title; UIImage image = cell.Checked ? UIImage.FromFile ("images/checked.png") : UIImage.FromFile ("images/unchecked.png"); this.checkedImage.Image = image; }
public void ShowDetail(CustomCell cell) { this.itemTitle.Text = cell.Title; UIImage image = cell.Checked ? UIImage.FromFile("images/checked.png") : UIImage.FromFile("images/unchecked.png"); this.checkedImage.Image = image; }
public override void AccessoryButtonTapped(MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { CustomCell cell = tableView.CellAt(indexPath) as CustomCell; if (cell != null) { AppDelegate ad = (AppDelegate)UIApplication.SharedApplication.Delegate; ad.ShowDetail(cell); } }
public override void RowSelected(MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath indexPath) { CustomCell cell = tableView.CellAt(indexPath) as CustomCell; if (cell != null) { cell.CheckButtonTouchDown(null, null); } tableView.DeselectRow(indexPath, true); }
public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { string customCellID = "MyCellID" + indexPath.Section + indexPath.Row; CustomCell cell = (CustomCell)tableView.DequeueReusableCell (customCellID); if (cell == null) { cell = new CustomCell (UITableViewCellStyle.Default, customCellID); Item item = this.Data [indexPath.Row]; cell.Title = item.Title; cell.Checked = item.Checked; } return cell; }
public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { string customCellID = "MyCellID" + indexPath.Section + indexPath.Row; CustomCell cell = (CustomCell)tableView.DequeueReusableCell(customCellID); if (cell == null) { cell = new CustomCell(UITableViewCellStyle.Default, customCellID); Item item = this.Data[indexPath.Row]; cell.Title = item.Title; cell.Checked = item.Checked; } return(cell); }
public void ShowDetail (CustomCell cell) { this.detailViewController.ShowDetail (cell); this.navigationController.PushViewController ( this.detailViewController, true); }
public void ShowDetail(CustomCell cell) { this.detailViewController.ShowDetail(cell); this.navigationController.PushViewController( this.detailViewController, true); }