private void authentificateWithCredentials(String username, String password) { if (userController.authenticateUser(username, password) != null) { Hide(); PropertySearchForm propertySearchForm = new PropertySearchForm(false); propertySearchForm.Show(); } else { showIncorrectCredentialsError(); } }
private void backButton_Click(object sender, EventArgs e) { Hide(); PropertySearchForm propertySearchForm = new PropertySearchForm(propertySearchFormShouldReloadData); propertySearchForm.Show(); }