예제 #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!");
            }
        }
예제 #2
0
파일: Addstop.cs 프로젝트: Nimrarafiq98/BUS
        private void button3_Click(object sender, EventArgs e)
        {
            Addnum add = new Addnum();

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