private void button2_Click(object sender, EventArgs e) { if (pSsc == null) { pSsc = new WS.WebServiceSoapClient(); } int d = pSsc.MyRemoteMethod(56); String vSt = richTextBox1.Text; if (vSt != "") { vSt = vSt + "\n"; } richTextBox1.Text = vSt + d.ToString(); }
private void button1_Click(object sender, EventArgs e) { if (pSsc == null) { pSsc = new WS.WebServiceSoapClient(); } String St = pSsc.HelloWorld(); String vSt = richTextBox1.Text; if (vSt != "") { vSt = vSt + "\n"; } richTextBox1.Text = vSt + St; }