private void btnPasswordOptions_Click(object sender, EventArgs e) { PasswordGenerateOptions passwordGenerateOptionsForm = new PasswordGenerateOptions(user); if (passwordGenerateOptionsForm.ShowDialog() == DialogResult.OK) { user.Settings.PasswordOptions = passwordGenerateOptionsForm.passwordOptions; } }
private async void btnOptions_Click(object sender, EventArgs e) { PasswordGenerateOptions passwordGenerateOptionsForm = new PasswordGenerateOptions(user); if (passwordGenerateOptionsForm.ShowDialog() == DialogResult.OK) { user.Settings.PasswordOptions = passwordGenerateOptionsForm.passwordOptions; txtPassword.Text = await PasswordsService.Instance().GeneratePasswordAsync(user); } }
private async void btnOptions_Click(object sender, EventArgs e) { try { PasswordGenerateOptions passwordGenerateOptionsForm = new PasswordGenerateOptions(user); if (passwordGenerateOptionsForm.ShowDialog() == DialogResult.OK) { user.Settings.PasswordOptions = passwordGenerateOptionsForm.passwordOptions; txtPassword.Text = await PasswordsService.Instance().GeneratePasswordAsync(user); } } catch (Exception ex) { Messenger.Show(ex.Message + " " + ex.HResult, "Error"); } }