private void Calculate_TCT_Button_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(DI.Text)) { MessageBox.Show("Please Insert The DI Value or Manually Calculate it by inserting the Degree of the 14 Factors"); } else { TCF.Text = FPCalculator.CalculateTCF().ToString(); } }