public override async void ViewDidLoad () { base.ViewDidLoad (); todoService = PrayerService.DefaultService; await todoService.InitializeStoreAsync (); RefreshControl.ValueChanged += async (sender, e) => { await RefreshAsync (); }; await RefreshAsync (); }
public override async void ViewDidLoad () { base.ViewDidLoad (); prayerService = PrayerService.DefaultService; if (prayerService.User == null) { await prayerService.Authenticate (this); } //await prayerService.InitializeStoreAsync (); //await prayerService.InitializePrayerRequestStoreAsync (); //await prayerService.InitializePrayerRequestCategoriesStoreAsync (); //await prayerService.InitializeUsersStoreAsync (); }
public override async void ViewDidLoad() { base.ViewDidLoad(); //NavigationItem.Title = "nav"; // NavigationItem.SetLeftBarButtonItem( // new UIBarButtonItem(UIImage.FromBundle("threelines.png") // , UIBarButtonItemStyle.Plain // , (sender,args) => { // SidebarController.ToggleMenu(); // }), true); NavigationItem.SetLeftBarButtonItem( new UIBarButtonItem(UIBarButtonSystemItem.Bookmarks, (sender,args) => { SidebarController.ToggleMenu(); }) , true); prayerService = PrayerService.DefaultService; await prayerService.InitializeStoreAsync (); }