/// <summary>
 /// Initializes a new instance of the <see cref="ForgotPasswordViewModel"/> class.
 /// </summary>
 /// <param name="navigationService"></param>
 /// <param name="systemSettingsStore"></param>
 /// <param name="authenticationStore"></param>
 /// <param name="localizer"></param>
 public ForgotPasswordViewModel(
     INavigationService navigationService,
     ISystemSettingsStore systemSettingsStore,
     IAuthenticationStore authenticationStore,
     ILocalizer localizer)
     : base(navigationService, systemSettingsStore, localizer)
 {
     this.AuthenticationStore             = authenticationStore;
     this.SubmitForgotPasswordFormCommand = new DelegateCommand(async() => await this.SubmitForgotPasswordFormAsync());
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisterViewModel"/> class.
 /// </summary>
 /// <param name="navigationService"></param>
 /// <param name="systemSettingsStore"></param>
 /// <param name="authenticationStore"></param>
 /// <param name="localizer"></param>
 public RegisterViewModel(
     INavigationService navigationService,
     ISystemSettingsStore systemSettingsStore,
     IAuthenticationStore authenticationStore,
     ILocalizer localizer)
     : base(navigationService, systemSettingsStore, localizer)
 {
     this.AuthenticationStore       = authenticationStore;
     this.GoToLoginPageCommand      = new DelegateCommand(() => this.NavigationService.NavigateAsync("LoginPage"));
     this.SubmitRegistrationCommand = new DelegateCommand(async() => await this.SubmitRegistrationAsync());
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LoginViewModel"/> class.
 /// </summary>
 /// <param name="navigationService"></param>
 /// <param name="systemSettingsStore"></param>
 /// <param name="authenticationStore"></param>
 /// <param name="localizer"></param>
 public LoginViewModel(
     INavigationService navigationService,
     ISystemSettingsStore systemSettingsStore,
     IAuthenticationStore authenticationStore,
     ILocalizer localizer)
     : base(navigationService, systemSettingsStore, localizer)
 {
     this.AuthenticationStore           = authenticationStore;
     this.GoToForgotPasswordPageCommand = new DelegateCommand(() => this.NavigationService.NavigateAsync("ForgotPasswordPage"));
     this.GoToRegisterPageCommand       = new DelegateCommand(() => this.NavigationService.NavigateAsync("RegisterPage"));
     this.SubmitLoginCommand            = new DelegateCommand(async() => await this.SubmitLoginAsync());
     this.LoginModel = new LoginFormModel();
 }
Esempio n. 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AccountViewModel"/> class.
        /// </summary>
        /// <param name="navigationService"></param>
        /// <param name="systemSettingsStore"></param>
        /// <param name="localizer"></param>
        /// <param name="authenticationStore"></param>
        /// <param name="configuration"></param>
        public AccountViewModel(
            INavigationService navigationService,
            ISystemSettingsStore systemSettingsStore,
            ILocalizer localizer,
            IAuthenticationStore authenticationStore,
            IEmConfiguration configuration)
            : base(navigationService, systemSettingsStore, localizer)
        {
            this.AuthenticationStore = authenticationStore;
            this.Configuration       = configuration;

            this.GoToLoginPageCommand     = new DelegateCommand(() => this.NavigationService.NavigateAsync("LoginPage"));
            this.GoToRegisterPageCommand  = new DelegateCommand(() => this.NavigationService.NavigateAsync("RegisterPage"));
            this.LoginWithFacebookCommand = new DelegateCommand(() => this.LoginWithFacebook());
            this.LoginWithGoogleCommand   = new DelegateCommand(() => this.LoginWithGoogle());
        }
 public SecuredNavigator(IAuthenticationStore doorman, INavigationStore roadmap)
 {
     this.doorman = doorman;
     this.roadmap = roadmap;
 }