예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            CoursesU ac = new CoursesU();

            ac.Show();
            this.Hide();
        }
예제 #2
0
        private void backToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CoursesU aCourse = new CoursesU();

            aCourse.Show();
            this.Hide();
        }
예제 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (usernametextBox.Text == "Kishor" && passwordtextBox.Text == "1234")
            {
                CoursesU aCourse = new CoursesU();
                aCourse.Show();
                this.Hide();
            }

            else if (usernametextBox.Text == "Kishor" && passwordtextBox.Text == "")
            {
                MessageBox.Show("Password is Invalid");
            }
            else if (usernametextBox.Text == "" && passwordtextBox.Text == "1234")
            {
                MessageBox.Show("User Name is Invalid");
            }
            else if (usernametextBox.Text != "Kishor" && passwordtextBox.Text != "1234")
            {
                MessageBox.Show("UserName or Password is not Match !!");
            }
        }