private void CreateNewAccountExecute() { var account = TestWalletManager.CreateAccount("TestAccount" + count); Accounts.Add(account); count++; }
private async Task ImportEncryptedAccountExecute() { if (!string.IsNullOrEmpty(EncryptedKey) && !string.IsNullOrEmpty(Password)) { var account = await TestWalletManager.ImportAccount(EncryptedKey, Password, "ImportedAccount" + count); count++; Accounts.Add(account); } }
private void ImportWifAccountExecute() { if (string.IsNullOrEmpty(Wif)) { return; } var account = TestWalletManager.ImportAccount(Wif, "demo"); count++; Accounts.Add(account); }
private void DeleteAccountExecute(Account a) { TestWalletManager.DeleteAccount(a); Accounts.Remove(a); }