public void Dispose()
        {
            if (installedSource != null) {
                installedSource.SetSubstituteAudioDisplay (null);
                installedSource = null;
            }

            contents.Destroy ();
            contents.Dispose ();
            contents = null;
        }
Пример #2
0
 public void ResetSource()
 {
     source = null;
 }
Пример #3
0
 public bool SetSource(ISource src)
 {
     this.source = src as NowPlayingSource;
     return(this.source != null);
 }
Пример #4
0
 public void ResetSource ()
 {
     source = null;
 }
Пример #5
0
 public bool SetSource (ISource src)
 {
     this.source = source as NowPlayingSource;
     return this.source != null;
 }
 private void InstallDisplay(NowPlayingSource nps)
 {
     if (installedSource == null && nps != null) {
         nps.SetSubstituteAudioDisplay (contents);
         installedSource = nps;
     }
 }
 private void OnSourceRemoved(SourceEventArgs args)
 {
     if (args.Source == installedSource) {
         installedSource = null;
     }
 }