Esempio n. 1
0
 public LoginViewModel(WindowViewModel windowViewModel, PasswordBox passwordInput)
 {
     this.windowViewModel = windowViewModel;
     this.passwordInput   = passwordInput;
     goToRegistrationPage = new DelegateCommand(() => this.windowViewModel.GoToRegistrationPage());
     login = new DelegateCommand(LoginCommand, LoginCanExecute);
     passwordInput.PasswordChanged += PasswordChanged;
 }
 public RegistrationViewModel(WindowViewModel windowViewModel, PasswordBox passwordInput, PasswordBox rePasswordInput)
 {
     this.windowViewModel = windowViewModel;
     this.passwordInput   = passwordInput;
     this.rePasswordInput = rePasswordInput;
     goToLoginPage        = new DelegateCommand(() => this.windowViewModel.GoToLoginPage());
     register             = new DelegateCommand(RegisterCommand, RegisterCanExecute);
     this.passwordInput.PasswordChanged   += PasswordChanged;
     this.rePasswordInput.PasswordChanged += PasswordChanged;
 }