public void SelectItem(UIGridView table, ItemInventory selectItem, int Idx) { m_haveSelectItem = true; ItemInventory oldItem = null; if (m_selectIdx >= 0) { BagItemTableViewCell itemCell = table.cellAtIndex(m_selectIdx) as BagItemTableViewCell; if (itemCell != null) { oldItem = itemCell._ItemInventory; } } m_selectIdx = Idx; if (m_clickEquipItemCB != null) { m_clickEquipItemCB(oldItem, selectItem); } ; }
public TableViewCell cellAtIndex(int index) { return(m_gridView.cellAtIndex(index)); }