Beispiel #1
0
        private void btn_Login_Click(object sender, EventArgs e)
        {
            Server.Service1 server = new Server.Service1();
            bool            islogin;
            bool            ispassed;

            server.SLoginUser(txt_Email.Text, txt_Password.Text, out islogin, out ispassed);
            if (ispassed)
            {
                if (islogin)
                {
                    MessageBox.Show("You are Successfully entered Or Sunao :'D !");
                    EnterUser n = new EnterUser();

                    n.setUserFormAttr(txt_Email.Text, txt_Password.Text);
                    n.refreshComponents();
                    n.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("You cant log in because u are not a member of Or sunao");
                }
            }
            txt_Email.Clear();
            txt_Password.Clear();
        }