void _soOrchestrator_Tick(object sender, ElapsedEventArgs e) { _lSOElapsedTime = e.ElapsedTime; _setClocks(_soOrchestrator.GetCurrentTimer()); //if (IsScreensaverRunning()) //{ // if (!_soOrchestrator.IsPaused) // { // logger.Debug("Pause because of IsScreensaverRunning=true event"); // _soOrchestrator.Pause(); // } //} //else //{ // if (_soOrchestrator.IsPaused) // { // logger.Debug("Resume because of IsScreensaverRunning=false event"); // _soOrchestrator.Resume(); // } //} }
void _soOrchestrator_WorkElapsed(object sender, ElapsedEventArgs e) { logger.Info(string.Format("work period ended with {0}s, starting rest period", e.ElapsedTime)); _logActivity(ActivityType.WorkEnd, e.ElapsedTime); _logActivity(ActivityType.RestBegin, 0); _scenarioResting(); }
void _soOrchestrator_RestElapsed(object sender, ElapsedEventArgs e) { //logger.Info(string.Format("rest period ended with {0}s, starting work period", e.ElapsedTime)); logger.Info(string.Format("rest period ended with {0}s, waiting for user to click the resume work button, to start work period", e.ElapsedTime)); _logActivity(ActivityType.RestEnd, e.ElapsedTime); mainForm.ScenarioRestEnd(); //_logActivity(ActivityType.WorkBegin, 0); //_scenarioWorking(); }