aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-08 18:34:15 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-08 18:34:15 +0100
commit3dd77aa562c73d5b2ba227f9f7ad7c3ca6456141 (patch)
tree0979c0b9d59007d3f603dd01804c8ea28ffa843d /src
parentcfbc5bb4e139277309593941e8259f25a9272b05 (diff)
add checked and unchecked events
Diffstat (limited to 'src')
-rw-r--r--src/GraphicObjects/RadioButton.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/GraphicObjects/RadioButton.cs b/src/GraphicObjects/RadioButton.cs
index 66e63ce4..141a9887 100644
--- a/src/GraphicObjects/RadioButton.cs
+++ b/src/GraphicObjects/RadioButton.cs
@@ -26,7 +26,10 @@ namespace Crow
#region CTOR
public RadioButton() : base(){}
#endregion
-
+
+ public event EventHandler Checked;
+ public event EventHandler Unchecked;
+
#region GraphicObject overrides
[XmlAttributeAttribute()][DefaultValue(true)]//overiden to get default to true
public override bool Focusable
@@ -71,10 +74,13 @@ namespace Crow
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);
+ }
}
}