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