async void SignIn(object obj) { await UserService.Login(UserName, Password); RealmContext.Initialize(); Analytics.TrackEvent("User signed in"); Welcome.current.Frame.Navigate(typeof(PageMaster)); }
public static async Task Register(string username, string password, string name, string email) { var credentials = Credentials.UsernamePassword(username, password, createUser: true); var user = await User.LoginAsync(credentials, Constants.ServerUri); User.ConfigurePersistence(UserPersistenceMode.Encrypted); RealmContext.Initialize(); CreateUserInformation(name, email); }
void DismissExtendedSplash() { if (UserService.IsUserLoggenIn()) { RealmContext.Initialize(); rootFrame.Navigate(typeof(PageMaster)); } else { rootFrame.Navigate(typeof(Welcome)); } // Place the frame in the current Window Window.Current.Content = rootFrame; }