Beispiel #1
0
        private void Form1_Load(object sender, System.EventArgs e)
        {
            timer = new ScheduleTimer();
            timer.Elapsed += new ScheduledEventHandler(timer_Elapsed);

            //			timer.EventStorage = new NullEventStorage();
            timer.AddEvent(new ScheduledTime(EventTimeBase.BySecond, TimeSpan.FromSeconds(0)));
        }
Beispiel #2
0
 public mainform()
 {
     this.TickTimer = new ScheduleTimer();
     this.TickTimer.Elapsed += new ScheduledEventHandler(TickTimer_Elapsed);
     this.wpc = new WPCollection();
     this.wpc.wp = new List<WP>();
     this.confpath = Application.StartupPath + "\\conf.json";
     InitializeComponent();
 }
Beispiel #3
0
        public void InitTimer()
        {
            this.scheduleTimer = new ScheduleTimer();

            Timer clock = new Timer();
            clock.Interval = 1000;
            clock.Tick += Tick;
            clock.Start();

            Timer scheduleRetriever = new Timer();
            scheduleRetriever.Interval = 3000;
            scheduleRetriever.Tick += TimeToCheckSchedule;
            scheduleRetriever.Start();
        }