Пример #1
0
        void ReleaseDesignerOutlets()
        {
            if (FeedTable != null)
            {
                FeedTable.Dispose();
                FeedTable = null;
            }

            if (LoadingIndicator != null)
            {
                LoadingIndicator.Dispose();
                LoadingIndicator = null;
            }
        }
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            LoadingIndicator.StartAnimating();
            Title = "RSS Feeds";

            DetailViewController = (DetailViewController)((UINavigationController)SplitViewController.ViewControllers[1]).TopViewController;

            await _feedViewModel.LoadFeeds();

            FeedTable.Source = new FeedTableSource(ViewModel.Feeds, this);

            InvokeOnMainThread(() =>
            {
                FeedTable.ReloadData();
            });

            HandleOffline();
            LoadingIndicator.StopAnimating();
            LoadingIndicator.Hidden = true;
        }