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 showAutoManageOptions() { if (!this.Locked) { lastDownloadschedule = Setting.PodcastDownloadSchedule; pnlAutoManageOptions = new QPodcastAutoManageOptions(removePanel); this.Controls.Add(pnlAutoManageOptions); Clock.DoOnMainThread(arrangeControls); keyPreviewChange(); pnlAutoManageOptions.Focus(); } }