Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var account = Nethereum.Web3.Accounts.Account.LoadFromKeyStore(FileContent, textBox2.Text.Trim());
            var f       = new LoggedInForm(account, EthereumServer);

            f.Show();
            Close();
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            var pk      = textBox1.Text.Trim();
            var account = new Nethereum.Web3.Accounts.Account(pk, EthereumServer.Chain);
            var login   = new LoggedInForm(account, EthereumServer);

            login.Show();
            Close();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            var mnemonic = richTextBox1.Text.Trim();

            var wallet  = new Nethereum.HdWallet.Wallet(mnemonic, string.Empty);
            var account = wallet.GetAccount(0);

            var loginForm = new LoggedInForm(account, EthereumServer);

            loginForm.Show();
            Close();
        }