private void TextGotFocus(object sender, RoutedEventArgs e)
{
TextBox selectedBox = (TextBox)sender;
//set the currently selected textbox.
//This field is used to check which entity(hour/minute/second) to increment/decrement when user clicks the buttuns
currentlySelectedTextBox = selectedBox;
//highlight all code so that it is easier to the user to enter new info in the text box
selectedBox.SelectAll();
}