コード例 #1
0
        private void btn_Login_Click(object sender, EventArgs e)
        {
            if (txt_Username.Text == "" && txt_password.Text == "")
            {
                lblUserName.Text = "Please Enter UserName!";
                lblPassword.Text = "Please Enter Password!";
            }

            else if (txt_Username.Text == "Admin" && txt_password.Text == "123")
            {
                FinalYearProject_Managment fyp = new FinalYearProject_Managment();
                this.Hide();
                fyp.Show();
            }
            else
            {
                if (txt_Username.Text != "Admin")
                {
                    lblUserName.Text = "UserName is Incorrect!";


                    txt_Username.Text = "";
                }
                if (txt_password.Text != "123")
                {
                    lblPassword.Text  = "Password is Incorrect!";
                    txt_password.Text = "";
                }
            }
        }
コード例 #2
0
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FinalYearProject_Managment fyp = new FinalYearProject_Managment();

            this.Hide();
            fyp.Show();
        }
コード例 #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            FinalYearProject_Managment fyp = new FinalYearProject_Managment();

            this.Hide();
            fyp.Show();
        }