private void AddGnuPGCommandBar(Outlook.Explorer activeExplorer)
		{
			if (_gpgCommandBar != null)
				return;
			try
			{
				_gpgCommandBar = new GnuPGCommandBar(activeExplorer);
				_gpgCommandBar.Remove();
				_gpgCommandBar.Add();
				_gpgCommandBar.GetButton("Settings").Click += SettingsButton_Click;
				_gpgCommandBar.GetButton("About").Click += AboutButton_Click;
				_gpgCommandBar.RestorePosition(_settings);
			}
			catch (Exception ex)
			{
				WriteErrorData("AddGnuPGCommandBar", ex);
				ShowErrorBox(ex.Message);
			}
		}
 private void AddGnuPGCommandBar(Outlook.Explorer activeExplorer)
 {
     if (_gpgCommandBar != null)
         return;
     try
     {
         _gpgCommandBar = new GnuPGCommandBar(activeExplorer);
         _gpgCommandBar.Remove();
         _gpgCommandBar.Add();
         _gpgCommandBar.GetButton("Verify").Click += VerifyButton_Click;
         _gpgCommandBar.GetButton("Decrypt").Click += DecryptButton_Click;
         _gpgCommandBar.GetButton("Settings").Click += SettingsButton_Click;
         _gpgCommandBar.GetButton("About").Click += AboutButton_Click;
         _gpgCommandBar.RestorePosition(_settings);
     }
     catch (Exception ex)
     {
         WriteErrorData("AddGnuPGCommandBar", ex);
         MessageBox.Show(ex.Message);
     }
 }