Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            cmdAdminpage admin = new cmdAdminpage();

            this.Hide();
            admin.Show();
        }
Example #2
0
        private void btnback_Click(object sender, EventArgs e)
        {
            cmdAdminpage d1 = new cmdAdminpage();

            this.Hide();
            d1.Show();
        }
Example #3
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            cmdAdminpage admin = new cmdAdminpage();

            this.Hide();
            admin.Show();
        }
Example #4
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            localhost.Service1 server = new localhost.Service1();
            server.Identify_admin(txtUsername.Text, txtpassword.Text);
            txtUsername.Text = " ";
            txtpassword.Text = " ";
            cmdAdminpage admin = new cmdAdminpage();

            this.Hide();
            admin.Show();
        }
Example #5
0
        private void button2_Click(object sender, EventArgs e)
        {
            bool a;
            bool y;

            localhost.Service1 server = new localhost.Service1();
            server.loginAsAdmin(out a, out y);
            if (a == true)
            {
                cmdAdminpage adm = new cmdAdminpage();
                this.Hide();
                adm.Show();
            }
            else
            {
                MessageBox.Show("Your order is confirmed");
            }
        }