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 (); }
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(); }
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(); }