private void btnLogin_Click(object sender, EventArgs e) { if (Entity.verifyUsernamePassword(txtUsername.Text, txtPassword.Text)) { HomeHbC screen = new HomeHbC(parent); parent.SetUserControl(screen); } else { MessageBox.Show("Invalid username or password", "Login Error", MessageBoxButtons.OK, MessageBoxIcon.Information); Login.refreshPanel(this); } }
private void btnBack_Click(object sender, EventArgs e) { HomeHbC home = new HomeHbC(parent); home.txtSurname.Text = this.surname2; parent.SetUserControl(home); }