public override async void ViewDidLoad ()
        {
            base.ViewDidLoad ();

            todoService = QSTodoService.DefaultService;
            await todoService.InitializeAsync();

            todoService.BusyUpdate += (bool busy) => {
                if (busy)
                    activityIndicator.StartAnimating ();
                else 
                    activityIndicator.StopAnimating ();
            };

            await RefreshAsync ();

            AddRefreshControl ();
        }
Example #2
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            todoService = QSTodoService.DefaultService;
            await todoService.InitializeAsync();

            todoService.BusyUpdate += (bool busy) => {
                if (busy)
                {
                    activityIndicator.StartAnimating();
                }
                else
                {
                    activityIndicator.StopAnimating();
                }
            };

            await RefreshAsync();

            AddRefreshControl();
        }