private async void GetData() { IBillsRepository repository = BillsRepository.Instance; try { var list = await repository.GetProjektyAktowPrawnychList(); newestList.Adapter = new ProjektyAktowPrawnychAdapter(this, list); if (viewSwitcher.CurrentView != newestList) { viewSwitcher.ShowPrevious(); } } catch (ApiRequestException ex) { this.ShowErrorDialog(ex.Message); } }