Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string username  = textBox1.Text;
            string passsword = textBox2.Text;

            myhost.Service1 myservice = new myhost.Service1();
            bool            isfound;
            bool            isfoundpass;

            myservice.isvalid(username, passsword, out isfound, out isfoundpass);
            if (isfound == true && isfoundpass == true)
            {
                MessageBox.Show("Valid_user");
                user_after_login new_user = new user_after_login();
                new_user.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Invalid User");
            }

            //myservice.isvalid(username, passsword, out isfound, out isfoundpass);
            //MessageBox.Show("Valid");
        }
        private void button1_Click(object sender, EventArgs e)
        {
            myhost.Service1 myservice2 = new myhost.Service1();
            myservice2.tailor_registrattion(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text);
            MessageBox.Show("Tailor Registered");
            tailor_login new_form = new tailor_login();

            new_form.Show();
            this.Hide();
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            string customer_name = textBox2.Text;
            string design_name   = textBox1.Text;
            string mobile_no     = textBox3.Text;

            MessageBox.Show(textBox1.Text + " " + textBox2.Text + " " + textBox3.Text);
            myhost.Service1 new_order = new myhost.Service1();
            new_order.get_order(design_name, customer_name, mobile_no);
            MessageBox.Show("Order Placed");
        }
        private void button1_Click(object sender, EventArgs e)
        {
            myhost.Service1 new_ser = new myhost.Service1();

            List <myhost.tailor> temp = new List <myhost.tailor>();

            temp = new_ser.get_tailor().Cast <myhost.tailor>().ToList();

            //MessageBox.Show(temp[0].Name + " " + temp[0].Description);


            dataGridView1.DataSource = temp;
            dataGridView1.Refresh();
        }
Exemplo n.º 5
0
        private void button2_Click(object sender, EventArgs e)
        {
            myhost.Service1 new_admin = new myhost.Service1();
            string          username  = textBox1.Text;
            string          password  = textBox2.Text;

            new_admin.admin_registration(username, password);

            MessageBox.Show("Admin Registered");
            Admin_login new_entry = new Admin_login();

            this.Hide();
            new_entry.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            bool valid  = false;
            bool validS = false;

            myhost.Service1 ser = new myhost.Service1();
            ser.isValidCustomer(txtUserName.Text, txtPassword.Text, out valid, out validS);
            if (valid)
            {
                MessageBox.Show("Welcome!");
            }
            else
            {
                MessageBox.Show("Wrong username or password!");
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            /*   myhost.Service1 new_service_bind = new myhost.Service1();
             * BindingSource new_binding = new BindingSource();
             * new_binding.Add(new_service_bind.order_tailor());
             * dataGridView1.DataSource = new_binding;
             */


            myhost.Service1 new_ser = new myhost.Service1();

            List <myhost.order_data> temp = new List <myhost.order_data>();

            temp = new_ser.order_tailor().Cast <myhost.order_data>().ToList();

            //MessageBox.Show(temp[0].Name + " " + temp[0].Description);


            dataGridView1.DataSource = temp;
            dataGridView1.Refresh();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            myhost.Service1 new_ser = new myhost.Service1();

            List <myhost.designs> temp = new List <myhost.designs>();

            temp = new_ser.get_design().Cast <myhost.designs>().ToList();

            //MessageBox.Show(temp[0].Name + " " + temp[0].Description);


            dataGridView1.DataSource = temp;
            dataGridView1.Refresh();


            //BindingSource new_bind = new BindingSource();
            //new_bind.Add(temp);
            //dataGridView1.AutoGenerateColumns = true;
            //dataGridView1.AutoSize = false;
            //dataGridView1.DataSource = new_bind;
        }
Exemplo n.º 9
0
        private void button1_Click(object sender, EventArgs e)
        {
            myhost.Service1 myservice0 = new myhost.Service1();
            string          username   = textBox1.Text;
            string          password   = textBox2.Text;
            bool            isfound;
            bool            isfoundpass;

            myservice0.isvalid_tailor(username, password, out isfound, out isfoundpass);
            if (isfound == true && isfoundpass == true)
            {
                tailor_after_login new_form = new tailor_after_login();
                new_form.Show();
                textBox1.Text = "";
                textBox2.Text = "";
            }
            else
            {
                MessageBox.Show("Invalid User");
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            string username = textBox1.Text;
            string password = textBox2.Text;

            myhost.Service1 myser = new myhost.Service1();
            bool            isfound;
            bool            isfoundpass;

            myser.isvalid_admin(username, password, out isfound, out isfoundpass);
            if (isfound == false && isfoundpass == false)
            {
                MessageBox.Show("invalid admin");
            }
            else
            {
                admin_after_login new_admin = new admin_after_login();
                new_admin.Show();
                this.Hide();
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            myhost.Service1 new_ser = new myhost.Service1();
            MemoryStream    new_mem = new MemoryStream();

            // Image to send.
            Image image = Image.FromFile(this.filepath); // Get the selected image through file path.

            // Converting image to memory stream.
            image.Save(new_mem, image.RawFormat);
            byte[] imageBytes = new_mem.ToArray();

            // Convert byte[] to Base64 String.
            string imgBase64 = Convert.ToBase64String(imageBytes);

            // Description.
            string description = richTextBox1.Text;

            MessageBox.Show(imgBase64 + " " + textBox1.Text + " " + richTextBox1.Text + " " + textBox3.Text + " " + textBox2.Text);
            // Sending to server.
            new_ser.add_design(imgBase64, textBox1.Text, description, textBox3.Text, textBox2.Text);
        }
 private void button1_Click(object sender, EventArgs e)
 {
     myhost.Service1 myservice = new myhost.Service1();
     myservice.Customer_username(textBox1.Text, textBox2.Text, textBox4.Text, textBox3.Text, textBox5.Text);
     MessageBox.Show("User Registered");
 }
Exemplo n.º 13
0
 private void btnSignup_Click(object sender, EventArgs e)
 {
     myhost.Service1 ser = new myhost.Service1();
     ser.Customer_username(txtUsername.Text, txtPassword.Text, txtMobile.Text, txtAddress.Text, txtEmail.Text);
     MessageBox.Show("Customer Registered!");
 }