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

			todoService = QSTodoService.DefaultService;
			await todoService.InitializeStoreAsync ();
							
			RefreshControl.ValueChanged += async (sender, e) => {
				await RefreshAsync ();
			};

			await RefreshAsync ();
		}
Exemple #2
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

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

            RefreshControl.ValueChanged += async(sender, e) => {
                await RefreshAsync();
            };

            await RefreshAsync();
        }
		public override async void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			todoService = QSTodoService.DefaultService;

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

			await RefreshAsync ();

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

            todoService = QSTodoService.DefaultService;

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

            await RefreshAsync();

            AddRefreshControl();
        }