private void emailConsultantsBTN_Click(object sender, EventArgs e) { DbUser user = new DbUser(); for (int j = 0; j < users.Count(); j++) { if (searchUsersLBX.SelectedItem.ToString() == users[j].Name) { user = users[j]; break; } } DbUser thisUser = service.GetUserByUserName(username)[0]; EmailForm eform = new EmailForm(sessionId, user.Email, thisUser.Email); eform.Show(); }