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);
|
}
|
}
|
}
|