示例#1
0
        private void homeBtn_Click(object sender, EventArgs e)
        {
            HomeForrm homeForm = new HomeForrm();

            homeForm.GetObj(_loginUser);
            this.Close();
            homeForm.Show();
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            HomeForrm homeForm = new HomeForrm();

            this.Close();
            homeForm.GetObj(_loginformobj);
            homeForm.Show();
        }
示例#3
0
        private void Loginbtn_Click(object sender, EventArgs e)
        {
            username = usernameTB.Text;
            var password = passwordTB.Text;

            _flag = _login.LoginValidation(username, password);
            if (_flag == true)
            {
                usernameTB.Text    = "";
                passwordTB.Text    = "";
                _status            = true;
                usernamelabel.Text = username;
                HomeForrm homeForm = new HomeForrm();
                homeForm.GetObj(this);
                this.Hide();
                homeForm.Show();
            }
            if (_flag == false)
            {
                usernameTB.Text = "";
                passwordTB.Text = "";
                MessageBox.Show("Please check Your username and Password");
            }
        }