コード例 #1
0
        private void GetAllRecords()
        {
            games_info = MySQL_repository.MySQLselect_games("SELECT * FROM games");
            CustomListViewAdapter adapter = new CustomListViewAdapter(this, games_info);

            list.Adapter    = adapter;
            list.ItemClick += List_ItemClick;
        }
コード例 #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);
            list = FindViewById <ListView>(Resource.Id.List);
            //GetAllRecords();
            games_info = MySQL_repository.MySQLselect_games("SELECT * FROM games");
            CustomListViewAdapter adapter = new CustomListViewAdapter(this, games_info);

            list.Adapter    = adapter;
            list.ItemClick += List_ItemClick;
        }