示例#1
0
        private void echo_Click(object sender, EventArgs e)
        {
            startTimer();

            var serviceClient = new ServiceEcho.ServiceSoapClient("ServiceSoap1");
            var asciiData     = serviceClient.Echo(txtEchoInput.Text);

            txtEchoOutput.Text = asciiData.ToString();

            calculateTime(echoTime);
        }
示例#2
0
        private void btnEcho_Click(object sender, EventArgs e)
        {
            var watch = new Stopwatch();

            watch.Start();
            var serviceClient = new ServiceEcho.ServiceSoapClient("ServiceSoap");

            txtEchoOutput.Text = serviceClient.Echo(txtEchoInput.Text).ToString();
            watch.Stop();
            txtEchoWatch.Text = watch.ElapsedMilliseconds.ToString();
        }