Exemplo n.º 1
0
        private void cmdRegistration_Click(object sender, EventArgs e)
        {
            Server.Service1 server = new Server.Service1();
            bool            isvalid;
            bool            isvalidPassed;

            server.isvalid(txtUsername.Text, txtPassword.Text, comboBox1.Text, out isvalid, out isvalidPassed);
            if (isvalid)
            {
                MessageBox.Show(" valid");

                Addnum add = new Addnum();
                this.Hide();
                add.Show();

                if (comboBox1.Text == "user")
                {
                    Search search = new Search();
                    this.Hide();
                    search.Show();
                    MessageBox.Show("valid");
                }
            }
            else
            {
                MessageBox.Show("invalid user!");
            }
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Addnum add = new Addnum();

            this.Hide();
            add.Show();
        }