public void Destroy() { if (widget != null) { widget.Destroy(); widget.Dispose(); widget = null; } }
public void Dispose() { if (installedSource != null) { installedSource.SetSubstituteAudioDisplay (null); installedSource = null; } contents.Destroy (); contents.Dispose (); contents = null; }
public void Dispose() { if (installedSource != null) { installedSource.SetSubstituteAudioDisplay(null); installedSource = null; } contents.Destroy(); contents.Dispose(); contents = null; }
public void Initialize() { // Hack alert! Addin visualizations = AddinManager.Registry.GetAddin("Banshee.OpenVP.Visualizations"); if (visualizations != null) { visualizations.Enabled = true; } contents = new VisualizationDisplayWidget(); ServiceManager.SourceManager.SourceAdded += OnSourceAdded; ServiceManager.SourceManager.SourceRemoved += OnSourceRemoved; InstallDisplay(ServiceManager.SourceManager.FindSources <NowPlayingSource>().FirstOrDefault()); }
public void Initialize() { // Hack alert! Addin visualizations = AddinManager.Registry.GetAddin("Banshee.OpenVP.Visualizations"); if (visualizations != null) visualizations.Enabled = true; contents = new VisualizationDisplayWidget(); ServiceManager.SourceManager.SourceAdded += OnSourceAdded; ServiceManager.SourceManager.SourceRemoved += OnSourceRemoved; InstallDisplay (ServiceManager.SourceManager.FindSources<NowPlayingSource>().FirstOrDefault()); }