Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/15 10:02:37 (10 years ago)
Author:
ascheibe
Message:

#2329 fixed bug in simple code editor

Location:
trunk/sources/HeuristicLab.CodeEditor/3.4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CodeEditor/3.4/CodeEditorBase.cs

    r12473 r12478  
    6060    #region Events
    6161    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     }
    6762    protected virtual void OnTextEditorTextChanged() {
    6863      var handler = TextEditorTextChanged;
  • trunk/sources/HeuristicLab.CodeEditor/3.4/SimpleCodeEditor.Designer.cs

    r12473 r12478  
    2929      // TextEditor
    3030      //
    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) 
    3333            | System.Windows.Forms.AnchorStyles.Right)));
    3434      this.TextEditor.Location = new System.Drawing.Point(3, 3);
     
    3737      this.TextEditor.Size = new System.Drawing.Size(158, 57);
    3838      this.TextEditor.TabIndex = 0;
     39      this.TextEditor.TextChanged += new System.EventHandler(this.TextEditor_TextChanged);
    3940      //
    40       // CodeEditor
     41      // SimpleCodeEditor
    4142      //
    4243      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    4344      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    4445      this.Controls.Add(this.TextEditor);
    45       this.Name = "CodeEditor";
     46      this.Name = "SimpleCodeEditor";
    4647      this.Size = new System.Drawing.Size(164, 63);
    4748      this.ResumeLayout(false);
  • trunk/sources/HeuristicLab.CodeEditor/3.4/SimpleCodeEditor.cs

    r12473 r12478  
    2020#endregion
    2121
     22using System;
     23
    2224namespace HeuristicLab.CodeEditor {
    2325  public partial class SimpleCodeEditor : CodeEditorBase {
     
    3436      }
    3537    }
     38
     39    protected virtual void TextEditor_TextChanged(object sender, EventArgs e) {
     40      OnTextEditorTextChanged();
     41    }
    3642  }
    3743}
Note: See TracChangeset for help on using the changeset viewer.