diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-04-23 13:58:00 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-04-23 13:58:00 +0200 |
| commit | 6a9279526c4b8ecdd15a864033d8cea192277777 (patch) | |
| tree | 9711c05289a1f41004ebfc656873f6d280217554 /src/GraphicObjects/NumericControl.cs | |
| parent | 577d8603ea0adf3eb5fa45fe4b03990b6f4f4ce4 (diff) | |
EventHandler extension method for handling test if null
Diffstat (limited to 'src/GraphicObjects/NumericControl.cs')
| -rw-r--r-- | src/GraphicObjects/NumericControl.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/GraphicObjects/NumericControl.cs b/src/GraphicObjects/NumericControl.cs index 1d4336e2..51a3fdc5 100644 --- a/src/GraphicObjects/NumericControl.cs +++ b/src/GraphicObjects/NumericControl.cs @@ -24,9 +24,8 @@ namespace go public EventHandler<ValueChangeEventArgs> ValueChanged; public virtual void onValueChanged(object sender, ValueChangeEventArgs e) - { - if (ValueChanged != null) - ValueChanged (sender, e); + { + ValueChanged.Raise (sender, e); } #endregion |