private void btnConnect_Click(object sender, EventArgs e) { //UpdateAuthentication(); if (profile.ValidateComplete()) { new SearchForm(profile).ShowDialog(); } else { new MessageForm("Alert", "You did not enter all the required information.").ShowDialog(); } }