Esempio n. 1
0
        public async void DownloadFSListAsync()
        {
            progressBar.Visibility = ViewStates.Visible;
            FSService service = new FSService();

            fsListData = await service.GetFSListAsync();

            progressBar.Visibility = ViewStates.Gone;

            fsListAdapter      = new FSListViewAdapter(this, fsListData);
            fsListView.Adapter = fsListAdapter;
        }
Esempio n. 2
0
        public async void DownloadFSListAsync()
        {
            FSService service = new FallingStars.FSService();

            if (!service.isConnected(activity))
            {
                Toast toast = Toast.MakeText(activity, "Not connected to internet. Please check your device network settings.", ToastLength.Short);
                toast.Show();
            }
            else
            {
                progressBar.Visibility = ViewStates.Visible;
                fsListData             = await service.GetFSListAsync();

                progressBar.Visibility = ViewStates.Gone;

                fsListAdapter    = new FSListViewAdapter(activity, fsListData);
                this.ListAdapter = fsListAdapter;
            }
        }