/// <summary> /// Handles the Click event of the SquareRoot control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> protected void SquareRoot_Click(object sender, EventArgs e) { using (var service = new CalculatorServiceClient()) { tbResult.Text = service.GetSquareRoot(tbResult.Text); } CanAppendText = false; CanAppendCommand = true; }