private void createWalletButton_Click(object sender, EventArgs e)
 {
     CreateWalletPrompt CWP = new CreateWalletPrompt();
     this.Hide();
     var CWPreturn = CWP.ShowDialog();
     if(CWPreturn == DialogResult.OK)
     {
         walletPath = CWP.walletPath;
         walletPassword = CWP.walletPassword;
         this.DialogResult = DialogResult.OK;
         CWP.Dispose();
         this.Close();
     }
     this.Show();
 }
Example #2
0
        private void CreateWalletButton_Click(object sender, EventArgs e)
        {
            CreateWalletPrompt CWP = new CreateWalletPrompt();

            Utilities.Hide(this);
            var CWPreturn = CWP.ShowDialog();

            if (CWPreturn == DialogResult.OK)
            {
                WalletPath     = CWP.WalletPath;
                WalletPassword = CWP.WalletPassword;
                Utilities.SetDialogResult(this, DialogResult.OK);
                Utilities.Close(CWP);
                Utilities.Close(this);
            }
            this.Show();
        }