G
Guest
Present I am using Windows.Forms.Timer for reminder. But I want to sleep on events and when every event wake up they call my code. Please give the coding of the below example
for example : let us say I have three reminders..
one at 10am, one at 12am and one at 2pm same da
so my program starts at 9a
it goes through each event and finds out how much time it will take to hit this event( eventtime - current time
so let's say I created events in this orde
10am 2pm and 11am (better than 12
so my program creates first event and adds an entry in queue (which I'll explain
wake me up after (10 am - 9 am) 60 second
second event (2pm-9am) 300 second
and third event (11am-9am) 120 second
sleep on three events and when every event wake up they call my code and execute
for example : let us say I have three reminders..
one at 10am, one at 12am and one at 2pm same da
so my program starts at 9a
it goes through each event and finds out how much time it will take to hit this event( eventtime - current time
so let's say I created events in this orde
10am 2pm and 11am (better than 12
so my program creates first event and adds an entry in queue (which I'll explain
wake me up after (10 am - 9 am) 60 second
second event (2pm-9am) 300 second
and third event (11am-9am) 120 second
sleep on three events and when every event wake up they call my code and execute