예제 #1
0
        private void HomeBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            HomeGui home = new HomeGui();

            home.Show();
        }
예제 #2
0
        public void Authenicate(String username, String password)
        {
            Login log = new Login();

            if (username != DBUname && password != DBPword)
            {
                MessageBox.Show("Username & Password Incorrect!");
                //log.DisplayLoginError(false, false);
            }
            else if (username == DBUname && password != DBPword)
            {
                MessageBox.Show("Password Incorrect!");
                //log.DisplayLoginError(true, false);
            }
            else if (username != DBUname && password == DBPword)
            {
                MessageBox.Show("Password Incorrect!");
                //log.DisplayLoginError(false, true);
            }
            else
            {
                MessageBox.Show("Login Successful!");
                log.Hide();
                HomeGui home = new HomeGui();
                home.Show();
            }
        }
예제 #3
0
        private void BackBtn_Click(object sender, EventArgs e)
        {
            //When the Back button is clicked the Add user form is hidden and the Home Page is brought back.
            this.Hide();
            HomeGui form = new HomeGui();

            form.Show();
        }