Пример #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
     dataGridView1.DataSource = client.GetElementByID(int.Parse(textBox2.Text));
 }
Пример #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
     dataGridView1.DataSource = client.GetAllElements();
 }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();

            label1.Text = client.F4_WebService(int.Parse(textBox1.Text));
        }