Exemple #1
0
 private void 打开钱包OToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (OpenWalletDialog dialog = new OpenWalletDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         MyWallet wallet;
         try
         {
             wallet = MyWallet.Load(dialog.WalletPath, dialog.Password);
         }
         catch
         {
             MessageBox.Show("密码错误");
             return;
         }
         wallet_path = dialog.WalletPath;
         password    = dialog.Password;
         OpenWallet(wallet);
     }
 }
Exemple #2
0
 private void 打开钱包OToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (OpenWalletDialog dialog = new OpenWalletDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK) return;
         MyWallet wallet;
         try
         {
             wallet = MyWallet.Load(dialog.WalletPath, dialog.Password);
         }
         catch
         {
             MessageBox.Show("密码错误");
             return;
         }
         wallet_path = dialog.WalletPath;
         password = dialog.Password;
         OpenWallet(wallet);
     }
 }