Beispiel #1
0
        private void LoadUserInList()
        {
            UserDBHelper dbVals = new UserDBHelper(this);

            if (txtSearch.Text.Trim().Length < 1)
            {
                listItems = dbVals.GetAllUsers();
            }
            else
            {
                listItems = dbVals.GetUsersByName(txtSearch.Text.Trim());
            }
            lv.Adapter        = new UserListBaseAdapter(this, listItems);
            lv.ItemLongClick += lv_ItemLongClick;
        }