public SkipContent SetInterfaceFromServiceProvider(IServiceProvider value) { if (null != value) { Interface = value.GetService(typeof(ISkipContent)) as ISkipContent; } PropagatePossibleStates(); return(this); }
public void Initialize(bool restore) { SkipContent = ((World)Parent).Get <SkipContent>(); if (null != CurrentSongName) { LoadSong(CurrentSongName); if (MediaState.Playing == _lastMediaState) { PlaySong(CurrentSongName); RepeatSong = IsRepeating; return; } } if (restore) { StopSong(); } }
public SkipContent SetInterface(ISkipContent value) { Interface = value; PropagatePossibleStates(); return(this); }