Sub SetSchedule_ItemClick (Position As Int, Value As Object)
Dim start, now, atTime As Long
DateTime.TimeFormat = "HH:mm"
start = DateTime.TimeParse(Value) ' parse time from xml, format like 14:32
now = DateTime.Now
If start > now Then
atTime = start - now
Msgbox("It's OK", "Set schedule")
StartServiceAt(notischedule, atTime, False)
Else
Msgbox("Cannot set schedule in past time","Error")
End If
End Sub