private void logoutbutton_Click(object sender, EventArgs e) { logInForm lf = new logInForm(); this.Hide(); lf.Show(); }
private void confirmbutton_Click(object sender, EventArgs e) { logs = new LoginServices(); int result = logs.Validation(loginidtextBox.Text, textBox1.Text); if (result != 0) { if (textBox2.Text == textBox3.Text) { ls = new LoginServices(); int r = ls.Updatepass(loginidtextBox.Text, textBox2.Text); if (r > 0) { MessageBox.Show("Password changed.. Login Again"); logInForm log = new logInForm(); log.Show(); this.Hide(); } else { MessageBox.Show("Error"); } } else { MessageBox.Show("Password is not matched"); } } else { MessageBox.Show("User id or password are wrong"); } }
public Warden(logInForm log) { InitializeComponent(); this.log = log; }