Esempio n. 1
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            PoselController poselController = owner.Storyboard.InstantiateViewController("PoselController") as PoselController;

            if (poselController != null)
            {
                var section = sections[indexPath.Section];
                var posel   = indexedTableItems [section] [indexPath.Row];
                poselController.PoselID = posel.Id;
                owner.NavigationController.PushViewController(poselController, true);
            }
            tableView.DeselectRow(indexPath, true);
        }
Esempio n. 2
0
        async private void GetData()
        {
            IPeopleRepository repository = PeopleRepository.Instance;

            try {
                PoselController controller = (PoselController)ParentViewController.ParentViewController;
                int             id         = controller.PoselID;
                var             list       = await repository.GetPoselWspolpracownicy(id);

                TableView.Source = new PoselWspolpracownicyTableSource(list, this);
                TableView.ReloadData();
            } catch (ApiRequestException ex) {
                DisplayError(ex.Message);
                System.Diagnostics.Debug.WriteLine(ex.Message);
            } catch (Exception exc) {
                System.Diagnostics.Debug.WriteLine(exc.Message);
            } finally {
                loadingOverlay.Hide();
            }
        }