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