Exemplo n.º 1
0
        async void SignIn(object obj)
        {
            await UserService.Login(UserName, Password);

            RealmContext.Initialize();
            Analytics.TrackEvent("User signed in");
            Welcome.current.Frame.Navigate(typeof(PageMaster));
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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;
        }