private void btnSec_Click(object sender, EventArgs e) { if (checkContent()) { double inputNumber = Convert.ToDouble(txtInput.Text); txtInput.Text = Trigonometry.GetSec(inputNumber).ToString(); } }