Sub Timer1_Tick
Dim t As Long = Max(0, targetTime - DateTime.Now)
Dim hours, minutes, seconds As Int
hours = t / DateTime.TicksPerHour
minutes = (t Mod DateTime.TicksPerHour) / DateTime.TicksPerMinute
seconds = (t Mod DateTime.TicksPerMinute) / DateTime.TicksPerSecond
Log($"$2.0{hours}:$2.0{minutes}:$2.0{seconds}"$)
If t = 0 Then
Log("Done..")
Dim n As Notification = CreateNotification("Done Timer")
n.Notify(nid)
timer1.Enabled = False
' Dim cs As CSBuilder
' cs.Initialize.Color(Colors.Blue).Size(20).Append("Testing toast message").PopAll
' ShowCustomToast(cs,True,Colors.White)'
'
End If
End Sub