Beispiel #1
0
 public SettingsPage(SettingsViewModel settingsViewModel, IInternetConnectionChecker internetConnectionChecker, IUserCredentialsSaver userCredentialsSaver)
 {
     InitializeComponent();
     _settingsViewModel         = settingsViewModel;
     _internetConnectionChecker = internetConnectionChecker;
     _userCredentialsSaver      = userCredentialsSaver;
     BindingContext             = _settingsViewModel;
 }
 public LoginPage(LoginViewModel loginViewModel,
                  IInternetConnectionChecker internetConnectionChecker,
                  IUserCredetialsRetriever userCredetialsRetriever,
                  IUserCredentialsSaver userCredentialsSaver)
 {
     InitializeComponent();
     _loginViewModel            = loginViewModel;
     _internetConnectionChecker = internetConnectionChecker;
     _userCredetialsRetriever   = userCredetialsRetriever;
     _userCredentialsSaver      = userCredentialsSaver;
     BindingContext             = loginViewModel;
 }
 public LoginViewModel(IUserCredentialsSaver userCredentialsSaver, ILoginService loginService)
 {
     _userCredentialsSaver = userCredentialsSaver;
     _loginService         = loginService;
 }