Exemplo n.º 1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1();
            bool testpass;
            bool isvalidpass;
            bool testpass1;
            bool isvalidpass1;

            StudentsAffairsSystem.ChkTeachersSecretQuest(comboBox1.Text, textBox1.Text, out testpass, out isvalidpass);
            StudentsAffairsSystem.ChkStudentsSecretQuest(comboBox1.Text, textBox1.Text, out testpass1, out isvalidpass1);
            if (testpass || testpass1)
            {
                NewPassword obj = new NewPassword();
                obj.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Your Secret Anwers are not correct");
            }
        }