public override void OnListItemClick(ListView l, View v, int index, long id) { // We can display everything in place with fragments. // Have the list highlight this item and show the data. ListView.SetItemChecked(index, true); var wspolpracownik = list.ElementAt(index); DownloadHelper = new DocumentDownloadHelper(wspolpracownik.DokumentID, this.Activity); DownloadHelper.DownloadedEvent += delegate() { Toast.MakeText(Activity, "Pobieranie zakończone pomyślnie. Kliknij na dokument jeszcze raz aby go otworzyć.", ToastLength.Long).Show(); if (ListAdapter != null) { (ListAdapter as PoselWspolpracownicyListAdapter).NotifyDataSetChanged(); } }; DownloadHelper.StartDownloading(); }
public MyBroadcastReceiver(DocumentDownloadHelper helper) { _helper = helper; }