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(); }
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(); } } }