protected override void OnClosed(EventArgs e) { base.OnClosed(e); this.parentForm.LocationChanged -= new EventHandler(this.ParentFormLocationChanged); foreach (Control control in base.Controls) { control.MouseMove -= new MouseEventHandler(this.ControlMouseMove); } if (this.control.ActiveTextAreaControl.VScrollBar != null) { this.control.ActiveTextAreaControl.VScrollBar.ValueChanged -= new EventHandler(this.ParentFormLocationChanged); } if (this.control.ActiveTextAreaControl.HScrollBar != null) { this.control.ActiveTextAreaControl.HScrollBar.ValueChanged -= new EventHandler(this.ParentFormLocationChanged); } this.control.ActiveTextAreaControl.TextArea.LostFocus -= new EventHandler(this.TextEditorLostFocus); AbstractCompletionWindow abstractCompletionWindow = this; this.control.ActiveTextAreaControl.Caret.PositionChanged -= new EventHandler(abstractCompletionWindow.CaretOffsetChanged); AbstractCompletionWindow abstractCompletionWindow1 = this; this.control.ActiveTextAreaControl.TextArea.DoProcessDialogKey -= new DialogKeyProcessor(abstractCompletionWindow1.ProcessTextAreaKey); this.control.Resize -= new EventHandler(this.ParentFormLocationChanged); base.Dispose(); }
protected void ShowCompletionWindow() { base.Owner = this.parentForm; base.Enabled = true; base.Show(); this.control.Focus(); if (this.parentForm != null) { this.parentForm.LocationChanged += new EventHandler(this.ParentFormLocationChanged); } this.control.ActiveTextAreaControl.VScrollBar.ValueChanged += new EventHandler(this.ParentFormLocationChanged); this.control.ActiveTextAreaControl.HScrollBar.ValueChanged += new EventHandler(this.ParentFormLocationChanged); AbstractCompletionWindow abstractCompletionWindow = this; this.control.ActiveTextAreaControl.TextArea.DoProcessDialogKey += new DialogKeyProcessor(abstractCompletionWindow.ProcessTextAreaKey); AbstractCompletionWindow abstractCompletionWindow1 = this; this.control.ActiveTextAreaControl.Caret.PositionChanged += new EventHandler(abstractCompletionWindow1.CaretOffsetChanged); this.control.ActiveTextAreaControl.TextArea.LostFocus += new EventHandler(this.TextEditorLostFocus); this.control.Resize += new EventHandler(this.ParentFormLocationChanged); foreach (Control control in base.Controls) { control.MouseMove += new MouseEventHandler(this.ControlMouseMove); } }
protected void ShowCompletionWindow() { Enabled = true; AbstractCompletionWindow.ShowWindow(base.Handle, AbstractCompletionWindow.SW_SHOWNA); control.Focus(); if (Owner != null) { Owner.LocationChanged += new EventHandler(this.ParentFormLocationChanged); } control.ActiveTextAreaControl.VScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); control.ActiveTextAreaControl.HScrollBar.ValueChanged += new EventHandler(ParentFormLocationChanged); control.ActiveTextAreaControl.TextArea.DoProcessDialogKey += new DialogKeyProcessor(ProcessTextAreaKey); control.ActiveTextAreaControl.Caret.PositionChanged += new EventHandler(CaretOffsetChanged); control.ActiveTextAreaControl.TextArea.LostFocus += new EventHandler(this.TextEditorLostFocus); control.Resize += new EventHandler(ParentFormLocationChanged); }
public void ShowDeclarationViewWindow() { AbstractCompletionWindow.ShowWindow(base.Handle, AbstractCompletionWindow.SW_SHOWNA); }