Пример #1
0
        public RecoverWalletViewModel(
            string walletName,
            Network network,
            WalletManager walletManager)
        {
            Suggestions = new Mnemonic(Wordlist.English, WordCount.Twelve).WordList.GetWords();

            Mnemonics.ToObservableChangeSet().ToCollection()
            .Select(x => x.Count == 12 ? new Mnemonic(GetTagsAsConcatString()) : default)
        public RecoverWalletViewModel(
            string walletName,
            WalletManagerViewModel walletManagerViewModel)
        {
            Suggestions = new Mnemonic(Wordlist.English, WordCount.Twelve).WordList.GetWords();
            var walletManager = walletManagerViewModel.WalletManager;
            var network       = walletManager.Network;

            Mnemonics.ToObservableChangeSet().ToCollection()
            .Select(x => x.Count is 12 or 15 or 18 or 21 or 24 ? new Mnemonic(GetTagsAsConcatString().ToLowerInvariant()) : default)
    public VerifyRecoveryWordsViewModel(Wallet wallet)
    {
        _suggestions = new Mnemonic(Wordlist.English, WordCount.Twelve).WordList.GetWords();

        _wallet = wallet;

        Mnemonics.ToObservableChangeSet().ToCollection()
        .Select(x =>
                x.Count is 12 or 15 or 18 or 21 or 24
                                        ? new Mnemonic(GetTagsAsConcatString().ToLowerInvariant())
                                        : default)
Пример #4
0
        public RecoveryPageViewModel(IScreen screen) : base(screen)
        {
            Suggestions = new Mnemonic(Wordlist.English, WordCount.Twelve).WordList.GetWords();

            _currentMnemonic = Mnemonics.ToObservableChangeSet().ToCollection()
                               .Select(x => x.Count == 12 ? new Mnemonic(GetTagsAsConcatString()) : default)