[hyena/canvas: 1/5] [Hyena.Data] Add IDataBinder



commit a08fe2a593a70e75aae8d72460f943b96653b20b
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Oct 21 18:46:58 2010 -0500

    [Hyena.Data] Add IDataBinder
    
    Used by CanvasItems to get/set their value/state.

 Hyena/Hyena.Data/IDataBinder.cs |   38 ++++++++++++++++++++++++++++++++++++++
 Hyena/Makefile.am               |    1 +
 2 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/Hyena/Hyena.Data/IDataBinder.cs b/Hyena/Hyena.Data/IDataBinder.cs
new file mode 100644
index 0000000..0d98e61
--- /dev/null
+++ b/Hyena/Hyena.Data/IDataBinder.cs
@@ -0,0 +1,38 @@
+//
+// IDataBinder.cs
+//
+// Author:
+//   Gabriel Burt <gburt novell com>
+//
+// Copyright (C) 2010 Novell, Inc.
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using Hyena.Data;
+
+namespace Hyena.Data
+{
+    public interface IDataBinder
+    {
+        void Bind (object o);
+        object BoundObject { get; set; }
+    }
+}
diff --git a/Hyena/Makefile.am b/Hyena/Makefile.am
index e4f6fe9..bda0d98 100644
--- a/Hyena/Makefile.am
+++ b/Hyena/Makefile.am
@@ -23,6 +23,7 @@ SOURCES =  \
 	Hyena.Data/BaseListModel.cs \
 	Hyena.Data/ColumnDescription.cs \
 	Hyena.Data/DictionaryModelCache.cs \
+	Hyena.Data/IDataBinder.cs \
 	Hyena.Data/ICacheableItem.cs \
 	Hyena.Data/ICacheableModel.cs \
 	Hyena.Data/ICareAboutView.cs \



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