protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (errorDrawer != null) { errorDrawer.Dispose(); errorDrawer = null; } if (quickClassBrowserPanel != null) { quickClassBrowserPanel.Dispose(); quickClassBrowserPanel = null; } if (customQuickClassBrowserPanel != null) { customQuickClassBrowserPanel.Dispose(); customQuickClassBrowserPanel = null; } if (advancedHighlighter != null) { advancedHighlighter.Dispose(); advancedHighlighter = null; } CloseCodeCompletionWindow(this, EventArgs.Empty); CloseInsightWindow(this, EventArgs.Empty); } }
void RemoveQuickClassBrowserPanel() { if (quickClassBrowserPanel != null) { Controls.Remove(quickClassBrowserPanel); quickClassBrowserPanel.Dispose(); quickClassBrowserPanel = null; textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; } if (customQuickClassBrowserPanel != null) { if (Controls.Contains(customQuickClassBrowserPanel)) { Controls.Remove(customQuickClassBrowserPanel); customQuickClassBrowserPanel.Enabled = false; textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; } } }
void ShowQuickClassBrowserPanel() { if (quickClassBrowserPanel == null) { quickClassBrowserPanel = new QuickClassBrowserPanel(this); Controls.Add(quickClassBrowserPanel); textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; } if (customQuickClassBrowserPanel != null) { if (quickClassBrowserPanel != null) { RemoveQuickClassBrowserPanel(); } if (!Controls.Contains(customQuickClassBrowserPanel)) { Controls.Add(customQuickClassBrowserPanel); customQuickClassBrowserPanel.Enabled = true; textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; } return; } }
void ShowQuickClassBrowserPanel() { if (quickClassBrowserPanel == null) { quickClassBrowserPanel = new QuickClassBrowserPanel(this); Controls.Add(quickClassBrowserPanel); textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; } if (customQuickClassBrowserPanel != null) { if (quickClassBrowserPanel != null) RemoveQuickClassBrowserPanel(); if (!Controls.Contains(customQuickClassBrowserPanel)) { Controls.Add(customQuickClassBrowserPanel); customQuickClassBrowserPanel.Enabled = true; textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; } return; } }
void RemoveQuickClassBrowserPanel() { if (quickClassBrowserPanel != null) { Controls.Remove(quickClassBrowserPanel); quickClassBrowserPanel.Dispose(); quickClassBrowserPanel = null; textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; } if (customQuickClassBrowserPanel != null) { if (Controls.Contains(customQuickClassBrowserPanel)) { Controls.Remove(customQuickClassBrowserPanel); customQuickClassBrowserPanel.Enabled = false; textAreaPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; } } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (errorDrawer != null) { errorDrawer.Dispose(); errorDrawer = null; } if (quickClassBrowserPanel != null) { quickClassBrowserPanel.Dispose(); quickClassBrowserPanel = null; } if (customQuickClassBrowserPanel != null) { customQuickClassBrowserPanel.Dispose(); customQuickClassBrowserPanel = null; } if (advancedHighlighter != null) { advancedHighlighter.Dispose(); advancedHighlighter = null; } CloseCodeCompletionWindow(this, EventArgs.Empty); CloseInsightWindow(this, EventArgs.Empty); } }