private void lbLogin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FrmAdminLogin l = new FrmAdminLogin(); this.Close(); l.Show(); }
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FrmAdminLogin admin = new FrmAdminLogin(); this.Close(); admin.Show(); }
private void btnResetPass_Click(object sender, EventArgs e) { bool valid = false; bool validS = false; localhost.Service1 server = new localhost.Service1(); server.adminChangePassword(cmbQuestion.Text, txtAnswer.Text, txtNewPass.Text, out valid, out validS); if (valid) { MessageBox.Show("Password Changed!"); FrmAdminLogin l = new FrmAdminLogin(); this.Close(); l.Show(); } else { MessageBox.Show("Password not changed!"); } }