private void btnMainMenu_Click(object sender, EventArgs e)
        {
            StudentLoginViewForm stu = new StudentLoginViewForm();

            stu.Show();
            this.Hide();
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            StudentLoginViewForm form = new StudentLoginViewForm();

            this.Hide();
            form.Show();
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            localhost.Service1 ser = new localhost.Service1();
            bool isvaliduser;
            bool isvaliduserpassed;

            ser.isValidUser(txtusername.Text, txtpassword.Text, out isvaliduser, out isvaliduserpassed);

            if (isvaliduser)
            {
                StudentLoginViewForm r = new StudentLoginViewForm();
                this.Hide();
                r.Show();
            }
            else
            {
                MessageBox.Show("InValid User");
            }
        }