diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-08 18:34:15 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-08 18:34:15 +0100 |
| commit | 3dd77aa562c73d5b2ba227f9f7ad7c3ca6456141 (patch) | |
| tree | 0979c0b9d59007d3f603dd01804c8ea28ffa843d /src/GraphicObjects | |
| parent | cfbc5bb4e139277309593941e8259f25a9272b05 (diff) | |
add checked and unchecked events
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/RadioButton.cs | 12 |
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); + } } } |