Beispiel #1
0
        private void Back_Click(object sender, EventArgs e)
        {
            MainMenuForm1 m1 = new MainMenuForm1(l);

            m1.Visible   = true;
            this.Visible = false;
        }
Beispiel #2
0
        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;
 }