/// <summary>
 /// Click event for btn_Calculate
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Btn_Calculate_Click(object sender, EventArgs e)
 {
     if (txt_Value1.Text != null && (rb_CalcAreaFromRadius.IsChecked.Value == true || rb_CalcAreaFromSide.IsChecked.Value == true || rb_CalcIntToBinary.IsChecked.Value == true || rb_CalcIntToHex.IsChecked.Value == true))
     {
         string numberString = txt_Value1.Text;
         if (!ErrorsExist(true, numberString))
         {
             if (cmb_CalcType.SelectedItem.ToString().ToLower() == "conversion")
             {
                 numberString    = CleanForConversion(numberString);
                 txt_Value1.Text = numberString;
             }
             CalcResult calcResult = new CalcResult();
             calcResult.ResultText = GenerateResult(numberString);
             SolutionWindow solutionWindow = new SolutionWindow(calcResult);
             solutionWindow.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("Select a calculation choice radio button to perform a calculation.");
     }
 }
 public SolutionWindow(CalcResult calculatedValue)
 {
     InitializeComponent();
     DisplayResult(calculatedValue.ResultText);
 }