Beispiel #1
0
 public void Search(string query)
 {
     foreach (var provider in MusicProviders)
     {
         WebViewWrapperBase wrapper = GetWebViewWrapper(provider);
         wrapper.Search(query);
     }
 }
Beispiel #2
0
 public WebViewWrapperBase GetWebViewWrapper(MusicProvider provider)
 {
     webViewWrappers = webViewWrappers ?? new Dictionary <string, WebViewWrapperBase>();
     if (!webViewWrappers.ContainsKey(provider.Id))
     {
         WebViewWrapperBase wrapper = wrapperFactory(provider);
         wrapper.PlayerStateChanged  += Wrapper_PlayerStateChanged;
         wrapper.NowPlayingChanged   += Wrapper_NowPlayingChanged;
         webViewWrappers[provider.Id] = wrapper;
     }
     return(webViewWrappers[provider.Id]);
 }