// react on Timer Elapsed private void OnTimedEvent(object source, ElapsedEventArgs e) { lock (myLock) { _testValue = rand.Next(); _myGdItem = CreateDummyGazeData(); } }
private MyGazeDataItem CreateDummyGazeData() { MyGazeDataItem gdi = new MyGazeDataItem(); return(gdi); }