private void Player_MarkerSkipped(object player, CustomEventArgs <TimelineMediaMarker> args) { MarkerSkipped.IfNotNull(i => { var mm = new ScriptMediaMarker(args.Value); i(this, new ScriptEventArgs <ScriptMediaMarker>(mm)); }); }
protected virtual void OnMarkerSkipped(T mediaMarker) { MarkerSkipped.IfNotNull(i => i(this, mediaMarker)); }