示例#1
0
        private void btn_LOGIN_Click(object sender, EventArgs e)
        {
            login.setNIP(txt_USERNAME1.Text);
            login.setPwd(txt_PWD1.Text);

            status = impLogin.Login(login);

            if (status == true)
            {
                Beranda Bobj = new Beranda();
                Bobj.Show();

                this.Hide();
            }
            else
            {
                Pastikan PST = new Pastikan();
                PST.Show();
                txt_USERNAME1.Text = "";
                txt_PWD1.Text      = "";
                txt_USERNAME1.Focus();
            }
        }