示例#1
0
        private void btn_Login_Click(object sender, EventArgs e)
        {
            //bll.Authentication(txt_Username.Text, txt_Password.Text);
            int ReturnValues = bll.Authentication(txt_Username.Text, txt_Password.Text);

            //int ReturnValues = 0;
            if (ReturnValues > 0)
            {
                MainPage main = new MainPage();
                main.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Incorrect username or password", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }