Exemplo n.º 1
0
 private void OnTimeFinished(object sender, ElapsedEventArgs e)
 {
     TimeFinished?.Invoke();
     if (IsLooping)
     {
         Position = 0.0f;
     }
     //if the position was changed during the last run the interval is screwed up
     timer.Interval = Length * 1000.0f;
 }
Exemplo n.º 2
0
 private void CallOnTimeFinished()
 {
     TimeFinished?.Invoke();
 }