Example #1
0
        private void removePanel()
        {
            if (pnlAutoManageOptions != null)
            {
                if (Setting.PodcastDownloadSchedule != lastDownloadschedule)
                {
                    updateNextRefreshCallback();
                }
            }

            QPanel panel = pnlSubscriptionDetails;

            pnlSubscriptionDetails = null;

            if (panel == null)
            {
                panel = pnlAutoManageOptions;
                pnlAutoManageOptions = null;
            }

            if (panel != null)
            {
                this.Controls.Remove(panel);
                panel.Dispose();
            }
            arrangeControls();
            this.Locked = false;
            keyPreviewChange();
        }
Example #2
0
        public void ShowPanel(QPanel Panel)
        {
            controller.LockForPanel();

            this.Panel = Panel;

            Panel.Focus();
        }
Example #3
0
        private void arrangeControls()
        {
            Rectangle r;

            QPanel panel = pnlSubscriptionDetails;

            if (panel == null)
            {
                panel = pnlAutoManageOptions;
            }
            if (panel != null)
            {
                panel.Bounds = new Rectangle(0,
                                             this.ClientRectangle.Height - panel.Height,
                                             this.ClientRectangle.Width,
                                             panel.Height);

                r = new Rectangle(Point.Empty, new Size(panel.Width, panel.Top));
            }
            else
            {
                r = this.ClientRectangle;
            }

            btnGo.Location = new Point(r.Width - btnGo.Width - MARGIN,
                                       MARGIN);

            txtURL.Bounds = new Rectangle(MARGIN + Styles.BitmapRSS.Width + SPACING, MARGIN, btnGo.Left - MARGIN - MARGIN - Styles.BitmapRSS.Width - SPACING, txtURL.Height);

            lblSubscriptions.Location = new Point(MARGIN, txtURL.Bottom + SPACING);

            lvwSubscriptions.Bounds = new Rectangle(MARGIN,
                                                    lblSubscriptions.Bottom + SPACING,
                                                    r.Width - MARGIN - MARGIN,
                                                    r.Height / 3);

            lblEpisodes.Location = new Point(MARGIN, lvwSubscriptions.Bottom + SPACING);

            btnDone.Location = new Point(r.Width - btnDone.Width - MARGIN,
                                         r.Height - btnDone.Height - MARGIN);

            btnStopDownloads.Location = new Point(btnDone.Left - btnStopDownloads.Width - SPACING, btnDone.Top);

            btnSetDownloadFolder.Location = new Point(btnStopDownloads.Left - btnSetDownloadFolder.Width - SPACING, btnDone.Top);

            btnRefreshAll.Location = new Point(btnSetDownloadFolder.Left - btnRefreshAll.Width - SPACING, btnDone.Top);

            btnAutoManage.Location = new Point(btnRefreshAll.Left - btnAutoManage.Width - SPACING, btnDone.Top);

            lvwEpisodes.Bounds = new Rectangle(MARGIN,
                                               lblEpisodes.Bottom + SPACING,
                                               lvwSubscriptions.Width,
                                               btnDone.Top - lblEpisodes.Bottom - SPACING - SPACING);
        }