protected override void OnPageDestroy(int new_windowId) { SaveSettings(); if (_configurationServiceAgent != null) { _configurationServiceAgent.Dispose(); } base.OnPageDestroy(new_windowId); }
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); }