private void uxSearch_Click(object sender, EventArgs e) { LabPartnerWS.LabPartners client = new LabPartnerWS.LabPartners(); LabPartnerWS.LabSearchResults results = client.LookupByFirstName(uxFirstName.Text); if (results.Success) { uxFirstName.Text = String.Empty; uxNameList.DataSource = results.LabMembers; } else { MessageBox.Show("Failure\n" + results.Error); } }
private void uxExclude_Click(object sender, EventArgs e) { LabPartnerWS.LabPartners client = new LabPartnerWS.LabPartners(); String results = client.LookupOtherMembersFirstNames(uxFirstName.Text); MessageBox.Show(results); }