[hyena] [Data.Gui] Add Toggled event to ColumnCellCheckBox



commit fbce49a712c710e8b78d246b6fb42e4f6ce0aa5d
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Aug 13 18:35:05 2010 -0700

    [Data.Gui] Add Toggled event to ColumnCellCheckBox

 Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
index bfed4bd..0697080 100644
--- a/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
+++ b/Hyena.Gui/Hyena.Data.Gui/ColumnCellCheckBox.cs
@@ -33,6 +33,8 @@ namespace Hyena.Data.Gui
 {
     public class ColumnCellCheckBox : ColumnCell, IInteractiveCell, ISizeRequestCell
     {
+        public event EventHandler Toggled;
+
         public ColumnCellCheckBox (string property, bool expand) : base (property, expand)
         {
         }
@@ -66,6 +68,11 @@ namespace Hyena.Data.Gui
             if (last_pressed_bound != null && last_pressed_bound.Equals (BoundObjectParent)) {
                 Value = !Value;
                 last_pressed_bound = null;
+
+                var handler = Toggled;
+                if (handler != null) {
+                    handler (BoundObjectParent, EventArgs.Empty);
+                }
             }
 
             return true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]