Exemplo n.º 1
0
        protected void btnSomarVariacao_Click(object sender, EventArgs e)
        {
            ServiceSomar.ServiceSomarClient objServiceSomar = new ServiceSomar.ServiceSomarClient();
            
            ServiceSomar.Atributos _atributos = 
                new ServiceSomar.Atributos() { IndexVariacao = 15 };
            
            lblResultado.Text = objServiceSomar.SomarAtributo(int.Parse(txtValor1.Text), 
                int.Parse(txtValor2.Text), _atributos).ToString();

            objServiceSomar = null;
        }