bool PromptForPasswordAndKey()
		{
			if (Passphrase != null)
				return true;

			// Popup UI to select the passphrase and private key.
			var passphraseDialog = new Passphrase(_settings.DefaultKey, "Key");
			passphraseDialog.TopMost = true;
			var passphraseResult = passphraseDialog.ShowDialog();
			if (passphraseResult != DialogResult.OK)
			{
				// The user closed the passphrase dialog, prevent sending the mail
				return false;
			}

			Passphrase = passphraseDialog.EnteredPassphrase.ToCharArray();
			passphraseDialog.Close();

			return true;
		}
        bool PromptForPasswordAndKey()
        {
            if (this.Passphrase != null)
                return true;

            // Popup UI to select the passphrase and private key.
            Passphrase passphraseDialog = new Passphrase(_settings.DefaultKey, "Key");
            passphraseDialog.TopMost = true;
            DialogResult passphraseResult = passphraseDialog.ShowDialog();
            if (passphraseResult != DialogResult.OK)
            {
                // The user closed the passphrase dialog, prevent sending the mail
                return false;
            }

            this.Passphrase = passphraseDialog.EnteredPassphrase.ToCharArray();
            passphraseDialog.Close();

            return true;
        }