コード例 #1
0
        private void login_btn_Click(object sender, EventArgs e)
        {
            user = myUserLogic.checkUser(user_ID_txt.Text, user_Pass_txt.Text);

            if (user.userName == null)
            {
                MessageBox.Show("Invalid User Name or Password");
            }
            else
            {
                TabViewControl firstPage = new TabViewControl(user);
                this.Hide();
                firstPage.ShowDialog();
            }
        }
コード例 #2
0
        private void login_btn_Click(object sender, EventArgs e)
        {
            userCheck = myUserLogic.checkUser(user_ID_txt.Text, user_Pass_txt.Text);

            if (userCheck == false)
            {
                MessageBox.Show("Invalid User Name or Password");
            }
            else
            {
                error_message_lbl.Text = Convert.ToString(userCheck);
                BookSearch bookViewInstance = new BookSearch();
                this.Hide();
                bookViewInstance.ShowDialog();
            }
        }