public void SetTime(int Seconds)
{
TimeSpan t = TimeSpan.FromSeconds(Seconds);
int Hours = t.Hours;
// If we have more then 24 hours, then we need to
// convert the days to hours
if (t.Days > 0)
Hours += t.Days * 24;
// Format
HoursBox.Value = Hours;
MinutesBox.Value = t.Minutes;
SecondsBox.Value = t.Seconds;
}