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