示例#1
0
 private void 创建钱包数据库NToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (CreateWalletDialog dialog = new CreateWalletDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         ChangeWallet(UserWallet.Create(dialog.WalletPath, dialog.Password));
         Settings.Default.LastWalletPath = dialog.WalletPath;
         Settings.Default.Save();
     }
 }
示例#2
0
 private void 创建钱包数据库NToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (CreateWalletDialog dialog = new CreateWalletDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         NEP6Wallet wallet = new NEP6Wallet(GetIndexer(), dialog.WalletPath);
         wallet.Unlock(dialog.Password);
         wallet.CreateAccount();
         wallet.Save();
         ChangeWallet(wallet);
         Settings.Default.LastWalletPath = dialog.WalletPath;
         Settings.Default.Save();
     }
 }