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;
        }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
        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;
		}
Exemple #6
0
        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);
		}
Exemple #8
0
 public void ShowDetail(CustomCell cell)
 {
     this.detailViewController.ShowDetail(cell);
     this.navigationController.PushViewController(
         this.detailViewController, true);
 }