コード例 #1
0
ファイル: DonPedroService.cs プロジェクト: ReJeCtAll/ralph
		protected override void OnStart(string[] args)
		{
			int notificationsInterval = Properties.app.Default.notifications_interval;

			job = new DonPedroJob();
			timerDelegate = new TimerCallback(job.NotifyRalph);
			stateTimer = new Timer(timerDelegate, null, 1000, notificationsInterval * 1000);
		}
コード例 #2
0
        protected override void OnStart(string[] args)
        {
            int notificationsInterval = Properties.app.Default.notifications_interval;

            job           = new DonPedroJob();
            timerDelegate = new TimerCallback(job.NotifyRalph);
            stateTimer    = new Timer(timerDelegate, null, 1000, notificationsInterval * 1000);
        }