コード例 #1
0
		public override async void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			try
			{
				todoService = new QSTodoService();
			}
			catch (UriFormatException e)
			{
				var alert = new UIAlertView("Error", "Please make sure you update the applicationURL and applicationKey to match the mobile service you have created.", null, "OK");
				alert.Show();
				return;		        
			}

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

			await RefreshAsync ();

			AddRefreshControl ();
		}
コード例 #2
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            try
            {
                todoService = new QSTodoService();
            }
            catch (UriFormatException)
            {
                var alert = new UIAlertView("Error", "Please make sure you update the applicationURL and applicationKey to match the mobile service you have created.", null, "OK");
                alert.Show();
                return;
            }

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

            await RefreshAsync();

            AddRefreshControl();
        }
コード例 #3
0
		public override async void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			todoService = QSTodoService.DefaultService;

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

			await RefreshAsync ();

			AddRefreshControl ();
		}
コード例 #4
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            todoService = QSTodoService.DefaultService;

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

            await RefreshAsync();

            AddRefreshControl();
        }