Beispiel #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;
        }
Beispiel #2
0
        public async void DoanloadFSListAsync()
        {
            FSService service = new FSService();

            if (!service.isConnected(this))
            {
                Toast toast = Toast.MakeText(this, "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(this, fsListData);
                fsListView.Adapter = fsListAdapter;
            }
        }