protected override void OnPageDestroy(int new_windowId) { g_Player.PlayBackStopped -= new global::MediaPortal.Player.g_Player.StoppedHandler(OnPlayBackStopped); g_Player.PlayBackEnded -= new global::MediaPortal.Player.g_Player.EndedHandler(OnPlayBackEnded); g_Player.PlayBackChanged -= new global::MediaPortal.Player.g_Player.ChangedHandler(OnPlayBackChanged); if (_tvControlAgent != null) { _tvControlAgent.Dispose(); } base.OnPageDestroy(new_windowId); }
protected override void OnPageDestroy(int new_windowId) { if (_tvSchedulerAgent != null) { _tvSchedulerAgent.Dispose(); } if (_tvControlAgent != null) { _tvControlAgent.Dispose(); } base.OnPageDestroy(new_windowId); }
protected override void OnPageDestroy(int new_windowId) { SaveChannelsForCurrentGroup(); if (_tvSchedulerAgent != null) { _tvSchedulerAgent.Dispose(); } if (_tvGuideAgent != null) { _tvGuideAgent.Dispose(); } if (_tvControlAgent != null) { _tvControlAgent.Dispose(); } base.OnPageDestroy(new_windowId); }
private void Dispose(bool disposing) { if (!_isDisposed) { if (disposing) { // Managed resources GUIGraphicsContext.OnVideoReceived -= GUIGraphicsContext_OnVideoReceived; GUIGraphicsContext.OnBlackImageRendered -= GUIGraphicsContext_OnBlackImageRendered; _waitForBlackScreenEvent.Close(); _waitForBlackScreenEvent = null; if (_tvControlAgent != null) { _tvControlAgent.Dispose(); } } // No unmanaged resources to dispose } _isDisposed = true; }
protected override void OnPageDestroy(int newWindowId) { SaveSettings(); if (_tvSchedulerAgent != null) { _tvSchedulerAgent.Dispose(); } if (_tvGuideAgent != null) { _tvGuideAgent.Dispose(); } if (_tvControlAgent != null) { _tvControlAgent.Dispose(); } if (newWindowId != WindowId.ProgramInfo) { OnClearRules(false); _selectedTitle = string.Empty; _selectedTitleIndex = 0; } base.OnPageDestroy(newWindowId); }
protected override void OnPageDestroy(int newWindowId) { if (_isInSubDirectory) { m_iSelectedItemInFolder = GetSelectedItemNo(); } else { m_iSelectedItem = GetSelectedItemNo(); } SaveSettings(); if (_tvSchedulerAgent != null) { _tvSchedulerAgent.Dispose(); } if (_tvGuideAgent != null) { _tvGuideAgent.Dispose(); } if (_tvControlAgent != null) { _tvControlAgent.Dispose(); } if (_configurationAgent != null) { _configurationAgent.Dispose(); } if (newWindowId != WindowId.ProgramInfo && newWindowId != WindowId.ManualShedule) { _selectedSchedule = null; } base.OnPageDestroy(newWindowId); }