Beispiel #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();
        }
Beispiel #2
0
        private void showSubscriptionEditPanel(PodcastSubscription PS)
        {
            if (!this.Locked)
            {
                if (PS != null)
                {
                    this.Locked = true;

                    pnlSubscriptionDetails = new QPodcastDetails(PS, removePanel);
                    this.Controls.Add(pnlSubscriptionDetails);
                    Clock.DoOnMainThread(arrangeControls);
                    keyPreviewChange();
                    pnlSubscriptionDetails.Focus();
                }
            }
        }