private void onTimedEvent(object source, ElapsedEventArgs e) //This gets called everytime the interval of the timer has passed (1.5 seconds), it updates the barlines and stops the timer { target.UpdateBarlinesFromLilypond(); timer.Stop(); }