/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose(bool disposing) { try { if (disposing) { if (editorControl != null) { editorControl.Dispose(); editorControl = null; } GC.SuppressFinalize(this); } } finally { base.Dispose(disposing); } }
/// <summary> /// Initialize GUI context objects. /// </summary> private void PrivateInit() { noScribbleMode = false; loading = false; gettingCheckoutStatus = false; // This call is required by the Windows.Forms Form Designer. this.editorControl = new Microsoft.Samples.VisualStudio.IDE.EditorWithToolbox.EditorControl(); this.editorControl.AllowDrop = true; this.editorControl.HideSelection = false; this.editorControl.TabIndex = 0; this.editorControl.Text = string.Empty; this.editorControl.Name = "EditorPane"; this.editorControl.DragEnter += new System.Windows.Forms.DragEventHandler(this.OnDragEnter); this.editorControl.DragDrop += new System.Windows.Forms.DragEventHandler(this.OnDragDrop); this.editorControl.TextChanged += new System.EventHandler(this.OnTextChange); }
/// <summary> /// Initialize GUI context objects. /// </summary> private void PrivateInit() { noScribbleMode = false; loading = false; gettingCheckoutStatus = false; // This call is required by the Windows.Forms Form Designer. editorControl = new EditorControl(); editorControl.AllowDrop = true; editorControl.HideSelection = false; editorControl.TabIndex = 0; editorControl.Text = string.Empty; editorControl.Name = "EditorPane"; editorControl.DragEnter += new DragEventHandler(OnDragEnter); editorControl.DragDrop += new DragEventHandler(OnDragDrop); editorControl.TextChanged += new EventHandler(OnTextChange); }