aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TextBox.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-04-23 13:58:00 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-04-23 13:58:00 +0200
commit6a9279526c4b8ecdd15a864033d8cea192277777 (patch)
tree9711c05289a1f41004ebfc656873f6d280217554 /src/GraphicObjects/TextBox.cs
parent577d8603ea0adf3eb5fa45fe4b03990b6f4f4ce4 (diff)
EventHandler extension method for handling test if null
Diffstat (limited to 'src/GraphicObjects/TextBox.cs')
-rw-r--r--src/GraphicObjects/TextBox.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GraphicObjects/TextBox.cs b/src/GraphicObjects/TextBox.cs
index be7cdab9..20403789 100644
--- a/src/GraphicObjects/TextBox.cs
+++ b/src/GraphicObjects/TextBox.cs
@@ -91,11 +91,11 @@ namespace go
}
#endregion
- public event EventHandler<TextChangeEventArgs> TextChanged = delegate { };
+ public event EventHandler<TextChangeEventArgs> TextChanged;
public virtual void onTextChanged(Object sender, TextChangeEventArgs e)
{
- TextChanged (this, e);
+ TextChanged.Raise (this, e);
}
#region Keyboard handling