private void SkipStepTimerElapsed(object sender, EventArgs eventArgs) { IPlayerContext pc = GetPlayerContext(); if (pc != null) { if (_skipStepValid) { int step = _skipSteps[_skipStepIndex]; if (step != 0) { pc.SkipRelative(TimeSpan.FromSeconds(_skipStepDirection * step)); } } else { if (_skipStepDirection == -1) { pc.SkipToStart(); } else { pc.SkipToEnd(); } } _skipStepIndex = 0; SkipStep = string.Empty; } }