private void cmdAccounts_SelectedIndexChanged(object sender, EventArgs e) { AccountIndex = cmdAccounts.SelectedIndex; var account = Accounts[AccountIndex]; if (!account.Unlocked) { var frm = new FrmUnlock(account.Address, EthereumService); frm.ShowDialog(); LoadAccounts(); } CurrentAccount = account.Address; }