void Validate(string password)
        {
            var helper = new PasswordValidationHelper();

            this.IsValid         = helper.IsValid(password);
            this.ValidationError = helper.ValidationError;
        }
Пример #2
0
        public CreateNewWalletPageViewModel(INavigationService navigationService, IPageDialogService dialogService)
            : base(navigationService, dialogService)
        {
            NextCommand = new DelegateCommand(() => {
                var helper = new PasswordValidationHelper();

                if (helper.IsValid(Password, ConfirmPassword))
                {
                    _navigationService.NavigateAsync(typeof(ShowWalletMasterKeyPage).Name + "?password="******"Warning", helper.ValidationError, "Ok");
                }
            });
        }