summaryrefslogtreecommitdiff
path: root/CSharp/Ivy/IvyPPC
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:56:31 +0000
committerfcolin2007-02-01 09:56:31 +0000
commit5cdc1fb12fced4a0e3765426c3f75a9156f0e164 (patch)
treebe7ca6de30686b213105b26337ca2c61d15169e2 /CSharp/Ivy/IvyPPC
parent48b0b5180f456ae399634bafe9ab3d2e2b0ce28e (diff)
downloadivy-csharp-5cdc1fb12fced4a0e3765426c3f75a9156f0e164.zip
ivy-csharp-5cdc1fb12fced4a0e3765426c3f75a9156f0e164.tar.gz
ivy-csharp-5cdc1fb12fced4a0e3765426c3f75a9156f0e164.tar.bz2
ivy-csharp-5cdc1fb12fced4a0e3765426c3f75a9156f0e164.tar.xz
Utilisateur : Fcolin Date : 23/06/06 Heure : 11:12 Créé Commentaire: (vss 1)
Diffstat (limited to 'CSharp/Ivy/IvyPPC')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs75
1 files changed, 75 insertions, 0 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs b/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs
new file mode 100644
index 0000000..637d627
--- /dev/null
+++ b/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs
@@ -0,0 +1,75 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+
+namespace IvyBus
+{
+ /* This is the Application side of binding storage */
+ /* association of a generated Key and a delegate and the expression */
+ /* this is SEND to other client */
+
+ [DefaultEvent("Callback")]
+ [DesignerCategory("Component")]
+ [DesignTimeVisible(true)]
+ [ToolboxItem(false)] /* should be added via Ivy component */
+ public class IvyApplicationBinding : System.ComponentModel.Component
+ {
+ private BindingType binding;
+
+#if (!PocketPC)
+ [Category("Ivy")]
+#endif
+ public BindingType Binding
+ {
+ get { return binding; }
+ set { binding = value; }
+ }
+ private ushort key;
+ [Browsable(false)]
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
+ public ushort Key
+ {
+ get { return key; }
+ set { key = value; }
+ }
+ private object[] args;
+
+ [Browsable(false)]
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
+ public object[] Args
+ {
+ get { return args; }
+ set { args = value; }
+ }
+ private string expression;
+#if (!PocketPC)
+ [Category("Ivy")]
+#endif
+ [DefaultValue(null)]
+ public string Expression
+ {
+ get { return expression; }
+ set { expression = value; }
+ }
+
+ [Browsable(true)]
+ public event EventHandler<IvyMessageEventArgs> Callback;
+
+ public IvyApplicationBinding()
+ {
+ }
+
+ [Browsable(false)]
+ public EventHandler<IvyMessageEventArgs> CallbackHandler
+ {
+ get
+ {
+ EventHandler<IvyMessageEventArgs> temp = Callback;
+ return temp;
+ }
+ }
+
+ }
+
+}