private void btnBack_Click_1(object sender, EventArgs e) { Hide(); Form3_VisitorRegistration form3 = new Form3_VisitorRegistration(this.id); form3.Closed += (s, args) => Close(); form3.Show(); }
private void btnLogin_Click_1(object sender, EventArgs e) { if (facilitatorTableAdapter.LoginQuery(txtBoxUserName.Text, txtBoxPassword.Text) == 1) { if (txtBoxUserName.Text.Equals(facilitatorTableAdapter.AdminUsernameQuery()) && txtBoxPassword.Text.Equals(facilitatorTableAdapter.AdminPasswordQuery())) { Hide(); Form6_FacilitatorList form6 = new Form6_FacilitatorList(); form6.Closed += (s, args) => Close(); form6.Show(); } else { id = (int)facilitatorTableAdapter.GetIdQuery(txtBoxUserName.Text, txtBoxPassword.Text); Hide(); Form3_VisitorRegistration form3 = new Form3_VisitorRegistration(id); form3.Closed += (s, args) => Close(); form3.Show(); } } else { MessageBox.Show("Invalid Login Details!"); } }
private void btnBack_Click(object sender, EventArgs e) { this.Hide(); Form3_VisitorRegistration form3 = new Form3_VisitorRegistration(); form3.Closed += (s, args) => this.Close(); form3.Show(); }
private void btnLogout_Click(object sender, EventArgs e) { Hide(); Form3_VisitorRegistration form3 = new Form3_VisitorRegistration(); form3.Closed += (s, args) => Close(); form3.Show(); }