Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length < 5 || !textBox2.Text.Contains("@gmail.com") || !textBox3.Text.Contains("!"))
            {
                MessageBox.Show("your name should be of length 5, email must contain @gmail.com , password must have one ! symbol");
            }
            else
            {
                server.Service1 myserver = new server.Service1();
                myserver.adminreg(textBox1.Text, textBox2.Text, textBox3.Text);

                MessageBox.Show("admin registered");
            }
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length < 5)
            {
                MessageBox.Show("PLEASE ENTER A USERNAME OF LENGTH 5");
            }
            else if (!textBox2.Text.Contains("@gmail.com"))
            {
                MessageBox.Show("PLEASE ENTER A VALID EMAIL ADDRESS");
            }
            else
            {
                server.Service1 myserver = new server.Service1();
                myserver.registration(textBox1.Text, textBox2.Text);

                MessageBox.Show("REGISTERED!");
            }
        }
Example #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length < 5)
            {
                MessageBox.Show("Please Enter a Username of Length 5 characters");
            }
            else if (!textBox2.Text.Contains("@gmail.com"))
            {
                MessageBox.Show("Enter a valid email");
            }
            else
            {
                server.Service1 myserver = new server.Service1();
                myserver.registration(textBox1.Text, textBox2.Text);

                MessageBox.Show("user registered");
            }
        }
Example #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool isvaliduser;
            bool isvaliduserpassed;

            server.Service1 myserver = new server.Service1();
            myserver.isvaliduser(textBox1.Text, textBox2.Text, out isvaliduser, out isvaliduserpassed);
            if (isvaliduser == true)
            {
                MessageBox.Show("validuser");
                catagory_selection c = new catagory_selection();
                this.Hide();
                c.Show();
            }
            else
            {
                MessageBox.Show("invaliduser");
            }
        }
Example #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool isvalid = true;
            bool isvalidpss;

            //bool isvalidemail;
            server.Service1 myserver = new server.Service1();
            myserver.isvalidadmin(textBox1.Text, textBox2.Text, textBox3.Text, out isvalid, out isvalidpss);
            if (!isvalid)
            {
                MessageBox.Show("GREAT!! VALID PERSON");
                admincontrols c = new admincontrols();
                this.Hide();
                c.Show();
            }
            else if (!isvalid)
            {
                MessageBox.Show("OOPS!! INVALID PERSON");
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length < 5 || textBox1.Text == "")
            {
                MessageBox.Show("ENTER YOUR NAME OF ATLEAST 5 CHARACTERS.");
            }
            else if (!textBox2.Text.Contains("@gmail.com") || textBox2.Text == "")
            {
                MessageBox.Show("PLEASE!! ENTER A VALID EMAIL.");
            }
            else if (!textBox3.Text.Contains("!") || textBox3.Text == "")
            {
                MessageBox.Show("YOUR PASSWORD MUST HAVE A ! SYMBOL.");
            }

            else
            {
                server.Service1 myserver = new server.Service1();
                myserver.adminreg(textBox1.Text, textBox2.Text, textBox3.Text);

                MessageBox.Show("WAO!! YOU ARE REGISTERED. ");
            }
        }