private void btnByTwo_Click(object sender, EventArgs e) { double opr1; if (double.TryParse(txtInput.Text, out opr1)) { txtInput.Text = calcRef.Halve(opr1).ToString(); } }
private void btnByTwo_Click(object sender, EventArgs e) { double opr1; if (double.TryParse(txtInput.Text, out opr1)) { txtInput.Text = calcRef.Halve(opr1).ToString(); } }