Exemple #1
0
        private async void btnSomar_ClickAsync(object sender, EventArgs e)
        {
            var calc = new Proxy.CalcWebService();

            try
            {
                var r = ExecutarWebService();
                txtResult.Text = r.ToString();
            }
            catch (Exception E)
            {
                await Log(E.Message);
            }
            finally
            {
            }
        }
Exemple #2
0
        private async Task <int> Somar()
        {
            var calc = new Proxy.CalcWebService();

            return(calc.Somar(ToInt32(txtX.Text), ToInt32(txtY.Text)));
        }
Exemple #3
0
        private int ExecutarWebService()
        {
            var calc = new Proxy.CalcWebService();

            return(calc.Somar(Convert.ToInt32(txtX.Text), Convert.ToInt32(txtY.Text)));
        }