title: populate listbox from list of objects
body: <p>I've got Windows form that reads an xml file, stores the data from the xml file to a list of objects.
  This is the xml file format:</p>
  
  <pre><code>&lt;SalesmanDetails&gt;
      &lt;firstName&gt;as&lt;/firstName&gt;
      &lt;surname&gt;s&lt;/surname&gt;
      &lt;email&gt;name@example.com&lt;/email&gt;
      &lt;dateOfBirth&gt;01/01/1980&lt;/dateOfBirth&gt;
      &lt;streetNameAndNumber&gt;23 st &lt;/streetNameAndNumber&gt;
      &lt;city&gt;random&lt;/city&gt;
      &lt;country&gt;Australia&lt;/country&gt;
      &lt;sales&gt;1000&lt;/sales&gt;
      &lt;mobilePhoneNumber&gt;+254 123 123 123&lt;/mobilePhoneNumber&gt;
      &lt;officeNumber&gt;+65 852 256 5698&lt;/officeNumber&gt;
    &lt;/SalesmanDetails&gt;
  </code></pre>
  
  <p>When the user clicks the "View All" button, the firstName and surname of all the people in the xml file should appear on the listbox.</p>
  
  <p>this is the method I have so far:</p>
  
  <pre><code>private void btnViewAll_Click(object sender, EventArgs e)
          {
              listBox1.Items.Clear();
              foreach (SalesmanDetails details in salesmanList)
              {
                  listBox1.Items.Add(details.firstName +" "+ details.surname);
              }
          }  
  </code></pre>
  
  <p>When the user double clicks one of the names in the listbox, a messagebox with all the details of that person will be displayed.
  How would I go about doing this?</p>