Changeset 12478 for trunk/sources/HeuristicLab.CodeEditor
- Timestamp:
- 06/19/15 10:02:37 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.CodeEditor/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CodeEditor/3.4/CodeEditorBase.cs
r12473 r12478 60 60 #region Events 61 61 public event EventHandler TextEditorTextChanged; 62 protected virtual void TextEditor_TextChanged(object sender, EventArgs e) {63 if (TextEditorTextChanged != null) {64 TextEditorTextChanged(this, new EventArgs());65 }66 }67 62 protected virtual void OnTextEditorTextChanged() { 68 63 var handler = TextEditorTextChanged; -
trunk/sources/HeuristicLab.CodeEditor/3.4/SimpleCodeEditor.Designer.cs
r12473 r12478 29 29 // TextEditor 30 30 // 31 this.TextEditor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 32 | System.Windows.Forms.AnchorStyles.Left) 31 this.TextEditor.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 32 | System.Windows.Forms.AnchorStyles.Left) 33 33 | System.Windows.Forms.AnchorStyles.Right))); 34 34 this.TextEditor.Location = new System.Drawing.Point(3, 3); … … 37 37 this.TextEditor.Size = new System.Drawing.Size(158, 57); 38 38 this.TextEditor.TabIndex = 0; 39 this.TextEditor.TextChanged += new System.EventHandler(this.TextEditor_TextChanged); 39 40 // 40 // CodeEditor41 // SimpleCodeEditor 41 42 // 42 43 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 43 44 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 44 45 this.Controls.Add(this.TextEditor); 45 this.Name = " CodeEditor";46 this.Name = "SimpleCodeEditor"; 46 47 this.Size = new System.Drawing.Size(164, 63); 47 48 this.ResumeLayout(false); -
trunk/sources/HeuristicLab.CodeEditor/3.4/SimpleCodeEditor.cs
r12473 r12478 20 20 #endregion 21 21 22 using System; 23 22 24 namespace HeuristicLab.CodeEditor { 23 25 public partial class SimpleCodeEditor : CodeEditorBase { … … 34 36 } 35 37 } 38 39 protected virtual void TextEditor_TextChanged(object sender, EventArgs e) { 40 OnTextEditorTextChanged(); 41 } 36 42 } 37 43 }
Note: See TracChangeset
for help on using the changeset viewer.