public ItemsInfoAdapter(Activity context, Library.ItemInfoList list) : base(context, Resource.Layout.ItemInfoRow, list) { this.context = context; itemInfoList = list; }
public ItemsListAdapter(Activity context, int rowResourceID, Library.ItemInfoList _list) : base(context, rowResourceID, _list) { this.context = context; ItemInfoList = _list; }
public CheckableItemsAdapter(Activity context, Library.ItemInfoList list) : base(context, Resource.Layout.item_row_checkable, list) { this.context = context; _itemInfoList = list; }
public static ItemInfoList GetItemInfoList(Context ctx, Criteria c) { ItemInfoList items = new ItemInfoList(); items.CurrentCriteria = c; items.LoadItems(ctx); return(items); }
private void SearchItems() { string searchFilter = " 1=1 "; int categ1SelectedValue = ((SpinnerAdapter <int, string>)cbItemCateg1.Adapter).GetSelectedValue(cbItemCateg1.SelectedItemPosition); if (categ1SelectedValue != -1) { searchFilter += " AND Cat1ID = " + categ1SelectedValue.ToString(); } int categ2SelectedValue = ((SpinnerAdapter <int, string>)cbItemCateg2.Adapter).GetSelectedValue(cbItemCateg2.SelectedItemPosition); if (categ2SelectedValue != -1) { searchFilter += " AND Cat2ID = " + categ2SelectedValue.ToString(); } if (string.IsNullOrEmpty(tbItemCodeFilter.Text) == false) { searchFilter += " AND ItemCod LIKE '%" + tbItemCodeFilter.Text + "%'"; } if (string.IsNullOrEmpty(tbItemDescFilter.Text) == false) { searchFilter += " AND ItemDesc LIKE '%" + tbItemDescFilter.Text + "%'"; } _ItemInfoList = Library.ItemInfoList.GetItemInfoList(this); ItemsSearchAdapter adapter = new ItemsSearchAdapter(this, Resource.Layout.ItemSearchRow, _ItemInfoList); ListAdapter = adapter; /* DAL.ItemInfoList.GetItemInfoList(searchFilter, (o, e) => * { * if (e.Error != null) * { * * } * else * { * _ItemInfoList = e.Object; * ItemsSearchAdapter adapter = new ItemsSearchAdapter(this, Resource.Layout.ItemSearchRow, _ItemInfoList); * ListAdapter = adapter; * } * });*/ }
private void LoadData() { _ItemInfoList = Library.ItemInfoList.GetItemInfoList(this); ItemsListAdapter adapter = new ItemsListAdapter(this, Resource.Layout.ItemInfoRow, _ItemInfoList); ListAdapter = adapter; /*DAL.ItemInfoList.GetItemInfoList("", (o, e) => * { * if (e.Error != null) * { * Android.Util.Log.Error("GetItemInfoList", string.Format("An error has occurred: {0}", e.Error.Message)); * } * else * { * _ItemInfoList = e.Object; * ItemsListAdapter adapter = new ItemsListAdapter(this, Resource.Layout.ItemInfoRow, _ItemInfoList); * ListAdapter = adapter; * } * });*/ }