/// <summary>
/// Initializes a new instance of the <see cref="Timer"/> class.
/// </summary>
/// <param name="timerInfo">A <see cref="TimerInfo"/> representing the state of the <see
/// cref="Timer"/>.</param>
public Timer(TimerInfo timerInfo)
: base(timerInfo)
{
this.timerStart = TimerStart.FromTimerStartInfo(timerInfo.TimerStart);
this.options = TimerOptions.FromTimerOptionsInfo(timerInfo.Options) ?? new TimerOptions();
this.UpdateHourglassTimer();
}