Beispiel #1
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            BoxedItem product = FilteredProducts[indexPath.Row];
            var       cell    = tableView.DequeueReusableCell("cat_cell_id", indexPath) as categoryCell;

            ConfigureCell(cell, product);
            return(cell);
        }
Beispiel #2
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            BoxedItem item = itemList[indexPath.Row];

            var theCell = TableView.DequeueReusableCell((NSString)"box_cell_id", indexPath) as boxCell;

            theCell.ItemData = item;
            return(theCell);
        }
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            BoxedItem selectedItem = (tableView == TableView) ? itemList[indexPath.Row] : resultsTableController.FilteredProducts[indexPath.Row];

            boxListController controller = this.Storyboard.InstantiateViewController("boxListStory") as boxListController;

            controller.SelectedBoxGroup = selectedItem.ItemBoxGroup;
            this.NavigationController.PushViewController(controller, true);
        }
 protected void ConfigureCell(UITableViewCell cell, BoxedItem product)
 {
     cell.TextLabel.Text = product.ItemName;
     //string detailedStr = string.Format("{0:C} | {1}", product.itemCode, product.itemCategory);
     //cell.DetailTextLabel.Text = detailedStr;
 }