public UserAccountProxyTest() { UserProperties userProperties = new UserProperties(); userProperties.SetProperty(UserAccountProperties.FirstTimeUser, true); userProperties.SetProperty(UserAccountProperties.HasCompletedShoppingTutorial, false); mTestUserAccountProxy = new UserAccountProxy(userProperties); }
private async void App_AccountSelected(object sender, UserAccountProxy e) { this.MainPage = InitialPage; this.InitialPage.Loader.IsVisible = true; var oRet = await Globals.myXamApp.Init(new string[] { }); this.InitialPage.Loader.IsVisible = false; if (oRet.Success) { this.MainPage = new RootPage(); this.BindMenuItems(Globals.myController()); } else { await this.InitialPage.DisplayAlert("Init", oRet.Message + Environment.NewLine + oRet.StackTrace, "OK", "Cancel"); } }