Ejemplo n.º 1
0
        private void Generate_Click(object sender, RoutedEventArgs e)
        {
            string password = passwordBox.Password;
            string name     = WalletName.Text;
            string path     = walletStorage.GetWalletFilePath(name);
            string mnemonic = FullWallet.GenerateNewWallet(path, password);

            wallet = new FullWallet(name, path, password);

            Mnemonic.Text = mnemonic;

            Generate.Visibility   = Visibility.Hidden;
            OpenWallet.Visibility = Visibility.Visible;
        }