Esempio n. 1
0
        private void Back_Click(object sender, EventArgs e)
        {
            MainMenuForm1 m1 = new MainMenuForm1(l);

            m1.Visible   = true;
            this.Visible = false;
        }
Esempio n. 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");
            }
        }
Esempio n. 3
0
 private void bookanother_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     this.mf      = new MainMenuForm1(l);
     mf.Visible   = true;
 }