private void Back_Click(object sender, EventArgs e) { MainMenuForm1 m1 = new MainMenuForm1(l); m1.Visible = true; this.Visible = false; }
private void loginbtn_Click(object sender, EventArgs e) { string username = UsernameTb.Text; string password = PasswordTb.Text; Login l = lr.GetUser(username, password); if (l != null) { MainMenuForm1 m1 = new MainMenuForm1(l); m1.Visible = true; this.Visible = false; } else { MessageBox.Show("Invalid Username or Password"); } }
private void bookanother_Click(object sender, EventArgs e) { this.Visible = false; this.mf = new MainMenuForm1(l); mf.Visible = true; }