aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Checkbox.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-16 15:17:15 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-16 15:17:15 +0200
commit92f6458d4b4935762cb60afbc0750d2c9c1e5497 (patch)
treeb61abc0ffe6238b4667f24d795a13760bce65809 /src/GraphicObjects/Checkbox.cs
parentc9d9828221aaa571651ded4a01e21a10adcafb5e (diff)
add Checked and Unchecked events
Diffstat (limited to 'src/GraphicObjects/Checkbox.cs')
-rw-r--r--src/GraphicObjects/Checkbox.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/GraphicObjects/Checkbox.cs b/src/GraphicObjects/Checkbox.cs
index b6796659..ede5d520 100644
--- a/src/GraphicObjects/Checkbox.cs
+++ b/src/GraphicObjects/Checkbox.cs
@@ -29,6 +29,8 @@ namespace go
}
#endregion
+ public event EventHandler Checked;
+ public event EventHandler Unchecked;
#region GraphicObject overrides
// [XmlAttributeAttribute()][DefaultValue(-1)]
@@ -74,10 +76,13 @@ namespace go
isChecked = value;
NotifyValueChanged ("IsChecked", value);
- if (isChecked)
+ if (isChecked) {
NotifyValueChanged ("SvgSub", "checked");
- else
+ Checked.Raise (this, null);
+ } else {
NotifyValueChanged ("SvgSub", "unchecked");
+ Unchecked.Raise (this, null);
+ }
}
}
public override void onMouseClick (object sender, MouseButtonEventArgs e)