void OnAccountManagerProcessPassphraseRequested(object sender, PassphraseRequestedEventArgs e) { Application.Instance.AsyncInvoke(() => { if (e.IsFirstTime) { // Let the user set the account's passphrase for the first time using (var dialog = new AccountChangePassphraseDialog(false) { Owner = this }) { var result = dialog.ShowModal(); if (result != null) { Utilities.MoneroProcessManager.AccountManager.Passphrase = result; } } } else { // Request the account's passphrase in order to unlock it OnCommandAccountUnlock(null, null); } }); }
void OnAccountManagerProcessPassphraseRequested(object sender, PassphraseRequestedEventArgs e) { Application.Instance.AsyncInvoke(() => { if (e.IsFirstTime) { // Let the user set the account's passphrase for the first time using (var dialog = new AccountChangePassphraseDialog(false) { Owner = this }) { var result = dialog.ShowModal(); if (result != null) { Utilities.MoneroProcessManager.AccountManager.Passphrase = result; } } } else { // Request the account's passphrase in order to unlock it OnCommandAccountUnlock(null, null); } }); }