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

            contents.Destroy ();
            contents.Dispose ();
            contents = null;
        }
Esempio n. 2
0
 public void ResetSource()
 {
     source = null;
 }
Esempio n. 3
0
 public bool SetSource(ISource src)
 {
     this.source = src as NowPlayingSource;
     return(this.source != null);
 }
Esempio n. 4
0
 public void ResetSource ()
 {
     source = null;
 }
Esempio n. 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;
     }
 }