Exemplo n.º 1
0
        private void btLogin_Click(object sender, EventArgs e)
        {
            bool isValid  = false;
            bool isValidS = false;

            server.Service1 ser = new server.Service1();
            if (txtEmail.Text == "" || txtPassword.Text == "")
            {
                MessageBox.Show("Incorrect username or password!");
            }
            else
            {
                ser.sValidLibrarian(txtEmail.Text, txtPassword.Text, out isValid, out isValidS);
                if (!isValid)
                {
                    MessageBox.Show("Incorrect username or password!");
                }
                else
                {
                    frmLibrarianMain temp = new frmLibrarianMain();
                    temp.Show();
                    this.Close();
                }
            }
        }
Exemplo n.º 2
0
        private void btnMain_Click(object sender, EventArgs e)
        {
            frmLibrarianMain temp = new frmLibrarianMain();

            temp.Show();
            this.Close();
        }