public void SelectPrevious(DurationPickerTextBox dptxt, bool loop) { if (dptxt == Hours) { if (loop) { Seconds.Focus(); } } else if (dptxt == Minutes) { Hours.Focus(); } else if (dptxt == Seconds) { Minutes.Focus(); } }