private void button_Click(object sender, RoutedEventArgs e) { if (Angle.Text != "" & check_num(Angle.Text) == true) { Trigonometry s = new Trigonometry(Angle.Text); if (n == 0) { Result.Content = s.nsin(); SatusPanel.Text = ""; } else if (n == 1) { Result.Content = s.ncos(); SatusPanel.Text = ""; } else if (n == 2) { Result.Content = s.ntg(); SatusPanel.Text = ""; } else if (n == 3) { Result.Content = s.nctg(); SatusPanel.Text = ""; } else { SatusPanel.Text = "Не выбрана функция"; } } else { if (Angle.Text == "") { SatusPanel.Text = "Не задан угол"; } if (check_num(Angle.Text) == false) { SatusPanel.Text = "Угол задан неверно"; } } }