/// <summary>
 /// If equals is pressed call to calculateTotal method
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void equalsButtonClick(object sender, RoutedEventArgs e)
 {
     calcDisplayBox.Text = MathFunctions.calculateTotal(calcDisplayBox.Text);
     calcDisplayBox.Select(calcDisplayBox.Text.Length, 0);
 }
 /// <summary>
 /// Used to ensure no invalid characters are entered into the textbox
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void displayBoxUpdated(object sender, TextChangedEventArgs e)
 {
     calcDisplayBox.Text = MathFunctions.checkValidChars(calcDisplayBox.Text);
     calcDisplayBox.Select(calcDisplayBox.Text.Length, 0);
 }