protected void btnCalculateDiv_Click(object sender, EventArgs e) { int value1 = int.Parse(txtValue7.Text); int value2 = int.Parse(txtValue8.Text); WSComplexFunctionsSVC.ComplexFunctionsClient complexFunctionsClient = new WSComplexFunctionsSVC.ComplexFunctionsClient(); int value = complexFunctionsClient.Divide(value1, value2); lblResultDiv.Text = "Resultado: " + value.ToString(); }
protected void btnCalculateMul_Click(object sender, EventArgs e) { int value1 = int.Parse(txtValue5.Text); int value2 = int.Parse(txtValue6.Text); WSComplexFunctionsSVC.ComplexFunctionsClient complexFunctionsClient = new WSComplexFunctionsSVC.ComplexFunctionsClient(); int value = complexFunctionsClient.Multiply(value1, value2); lblResultMul.Text = "Resultado: " + value.ToString(); }