Beispiel #1
0
        private void BackButton_Click(object sender, EventArgs e)
        {
            LibraryHall hall = new LibraryHall();

            this.Hide();
            hall.ShowDialog();
            this.Close();
        }
Beispiel #2
0
        private void LoginButton_Click(object sender, EventArgs e)
        {
            string Username = UsernameTb.Text;
            string Password = PasswordTb.Text;

            customer = bll.Verify_Login(Username, Password);

            if (customer != null)
            {
                LibraryHall hall = new LibraryHall();
                this.Hide();
                hall.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("Username or password is wrong.");
            }
        }