/// <summary>Initializes a new <see cref="KeyServerSearchForm"/> with the <see cref="PGPSystem"/> that will be used
  /// to search for keys. Keys selected by the user will be added to the given keyring.
  /// </summary>
  public KeyServerSearchForm(PGPSystem pgp, Keyring importKeyring)
  {
    InitializeComponent();

    keyservers.Items.Clear();
    keyservers.Items.AddRange(PGPUI.GetDefaultKeyServers());
    keyservers.SelectedIndex = 0;

    this.pgp     = pgp;
    this.keyring = importKeyring;
  }
Beispiel #2
0
  /// <summary>Initializes a new <see cref="KeyServerForm"/>.</summary>
  public KeyServerForm()
  {
    InitializeComponent();

    keyservers.Items.AddRange(PGPUI.GetDefaultKeyServers());
    keyservers.SelectedIndex = 0; // select the first keyserver by default

    // keep track of the margin around the help label so we can recreate it
    topSpace        = lblHelp.Top;
    bottomSpace     = Height - lblHelp.Bottom;
    horizontalSpace = lblHelp.Left;
  }