schangxiang@126.com
2025-09-19 fc752b66a7976188c4edd5e3fb7ca6bb2822e441
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using wcftest.wcf;
 
namespace wcftest
{
    public partial class TestForm : Form
    {
        public TestForm()
        {
            InitializeComponent();
            this.textBox1.Text = "222";
        }
 
        private void button1_Click(object sender, EventArgs e)
        {
            apitest wcfapi = new apitest();
            int taskID = Convert.ToInt32(textBox1.Text);
            int continerType = comboBox2.SelectedIndex + 1;
            int height = comboBox1.SelectedIndex + 1;
            string result = wcfapi.getToPlace(taskID, continerType, height, 0);
            MessageBox.Show("返回结果:" + result);
        }
    }
}