private void FnSetUpData() { mRunnersDataAccess = new RunnersDataAccess(); mRunnersDataAccess.CreateTable(); mRunnersList = mRunnersDataAccess.SelectTable(); mTransactionsDataAccess = new TransactionsDataAccess(); }
public void FnGetListData(string _queryString) { mRunnersList = mRunnersDataAccess.SelectTable(); var mItems = mRunnersList; //GlobalVariables.globalRunnersList; if (_queryString != "") { mItems = mItems .Where(x => x.FullName.ToLower().Contains(_queryString)) .ToList(); mRunnersList = mItems; } }
private void FnPopulateRunners(string _queryString) { mRunners = mRunnersDataAccess.SelectTable(); if (_queryString != "" && mRunners != null) { mRunners = mRunners .Where(x => x.FullName.ToLower().Contains(_queryString)) .ToList(); } RunnersListViewAdapter adapter = new RunnersListViewAdapter(this, mRunners, mTransactionsDataAccess.SelectTable()); mListView.Adapter = adapter; }