Exemplo n.º 1
0
 private void FnSetUpData()
 {
     mRunnersDataAccess = new RunnersDataAccess();
     mRunnersDataAccess.CreateTable();
     mRunnersList            = mRunnersDataAccess.SelectTable();
     mTransactionsDataAccess = new TransactionsDataAccess();
 }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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;
        }