Пример #1
0
        private void NewWallet(bool recreate)
        {
            try
            {
                MnemomicsWindow mnemomics = new MnemomicsWindow();

                if (!recreate)
                {
                    mnemomics.Mnemonic = tcBitcoin.NewMnemonics(Wordlist.English);
                }

                if (mnemomics.ShowDialog() == true)
                {
                    tcBitcoin.LoadWallet(mnemomics.Mnemonic, Wordlist.English);
                    ActivateWallet();
                }
            }
            catch (Exception err)
            {
                MessageBox.Show($"{err.Message}", $"{err.Source}.{err.TargetSite.Name}", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }