public FacebookLoginViewModel(INavigationServiceWithInit navigationService)
        {
            _navigationService = navigationService;

            Messenger.Default.Register <CurrentPageMessage>
            (
                this, (message) => SetContent(message)
            );
        }
Exemple #2
0
        public LoginViewModel(INavigationServiceWithInit navigationService, IUserDataService userDataService)
        {
            _navigationService = navigationService;
            _userDataService   = userDataService;

            SignInWithFacebookCommand = new RelayCommand(SignInWithFacebook);
            SignInWithTwitterCommand  = new RelayCommand(SignInWithTwitter);
            SignInWithEmailCommand    = new RelayCommand(SignInWithEmail);

            _email    = new ValidatableObject <string>();
            _password = new ValidatableObject <string>();
            _user     = new ValidatableObject <User>();
            AddValidations();
        }