Example #1
0
        protected override void OnPageLoad()
        {
            if (!TVHome.Connected)
            {
                RemoteControl.Clear();
                GUIWindowManager.ActivateWindow((int)Window.WINDOW_SETTINGS_TVENGINE);
                return;
            }

            TVHome.WaitForGentleConnection();

            if (TVHome.Navigator == null)
            {
                TVHome.OnLoaded();
            }
            else if (TVHome.Navigator.Channel == null)
            {
                TVHome.m_navigator.ReLoad();
                TVHome.LoadSettings(false);
            }

            if (TVHome.m_navigator == null)
            {
                TVHome.m_navigator = new ChannelNavigator(); // Create the channel navigator (it will load groups and channels)
            }

            base.OnPageLoad();
            if (btnPriorities != null)
            {
                btnPriorities.Visible = false;
            }
            //@      ConflictManager.OnConflictsUpdated += new MediaPortal.TV.Recording.ConflictManager.OnConflictsUpdatedHandler(ConflictManager_OnConflictsUpdated);

            LoadSettings();
            needUpdate   = false;
            selectedItem = null;
            LoadDirectory();

            while (m_iSelectedItem >= GetItemCount() && m_iSelectedItem > 0)
            {
                m_iSelectedItem--;
            }
            GUIControl.SelectItemControl(GetID, listSchedules.GetID, m_iSelectedItem);

            btnSortBy.SortChanged += new SortEventHandler(SortChanged);
        }
Example #2
0
        protected override void OnPageLoad()
        {
            TVHome.WaitForGentleConnection();

            base.OnPageLoad();
            if (btnPriorities != null)
            {
                btnPriorities.Visible = false;
            }
            //@      ConflictManager.OnConflictsUpdated += new MediaPortal.TV.Recording.ConflictManager.OnConflictsUpdatedHandler(ConflictManager_OnConflictsUpdated);

            LoadSettings();
            needUpdate   = false;
            selectedItem = null;
            LoadDirectory();

            while (m_iSelectedItem >= GetItemCount() && m_iSelectedItem > 0)
            {
                m_iSelectedItem--;
            }
            GUIControl.SelectItemControl(GetID, listSchedules.GetID, m_iSelectedItem);

            btnSortBy.SortChanged += new SortEventHandler(SortChanged);
        }