summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplicationBinding.cs
diff options
context:
space:
mode:
authorfcolin2007-11-09 08:54:21 +0000
committerfcolin2007-11-09 08:54:21 +0000
commit6e9efca5094c57f6322a8b66dcdf556d64dc6077 (patch)
treecff4ee1d422b17fae5521fdc65bf59573fe2a662 /Ivy/IvyApplicationBinding.cs
parentec7f971102797bcc7133ec9ac4c6f7263c6b6d8b (diff)
downloadivy-csharp-6e9efca5094c57f6322a8b66dcdf556d64dc6077.zip
ivy-csharp-6e9efca5094c57f6322a8b66dcdf556d64dc6077.tar.gz
ivy-csharp-6e9efca5094c57f6322a8b66dcdf556d64dc6077.tar.bz2
ivy-csharp-6e9efca5094c57f6322a8b66dcdf556d64dc6077.tar.xz
Diffstat (limited to 'Ivy/IvyApplicationBinding.cs')
-rw-r--r--Ivy/IvyApplicationBinding.cs50
1 files changed, 6 insertions, 44 deletions
diff --git a/Ivy/IvyApplicationBinding.cs b/Ivy/IvyApplicationBinding.cs
index 9183850..299f459 100644
--- a/Ivy/IvyApplicationBinding.cs
+++ b/Ivy/IvyApplicationBinding.cs
@@ -2,7 +2,6 @@ using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
-using System.ComponentModel;
using System.Threading;
namespace IvyBus
@@ -10,19 +9,11 @@ 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 */
-#if (!PocketPC)
- [PropertyTab(typeof(System.Windows.Forms.Design.EventsTab), PropertyTabScope.Component)]
- [DefaultEvent("Callback")]
-#endif
- [DesignerCategory("Component")]
- [DesignTimeVisible(false)] /* should be added via Ivy component */
- public class IvyApplicationBinding : System.ComponentModel.Component
+
+ public class IvyApplicationBinding
{
private BindingType binding;
-#if (!PocketPC)
- [Category("Ivy")]
-#endif
public BindingType Binding
{
get { return binding; }
@@ -30,10 +21,7 @@ namespace IvyBus
}
private ushort key;
- #if (!PocketPC)
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
-#endif
+
public ushort Key
{
get { return key; }
@@ -41,20 +29,14 @@ namespace IvyBus
}
private object[] args;
-#if (!PocketPC)
- [Browsable(false)]
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
-#endif
+
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; }
@@ -74,19 +56,7 @@ namespace IvyBus
///<summary>SentMessageClasses the first word token of sent messages
///<remarks> optimise the parsing process when sending messages </remarks>
///</summary>
-#if (!PocketPC)
- [Category("Ivy")]
-
- [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
- // sinon bug System.String constructor not found !
- [Editor(
- "System.Windows.Forms.Design.StringCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
- "System.Drawing.Design.UITypeEditor,System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
- )]
-
- [Description("Arguments used when formating the expression")]
-#endif
public List<string> Arguments
{
get
@@ -95,21 +65,13 @@ namespace IvyBus
}
}
-#if (!PocketPC)
- [Category("Ivy")]
- [Description("Event fired when Message Matching expression received")]
-#endif
public event EventHandler<IvyMessageEventArgs> Callback;
public IvyApplicationBinding()
{
arguments = new List<string>();
}
- public IvyApplicationBinding(IContainer container)
- : this()
- {
- container.Add(this);
- }
+
// translate part of expression to object property
public void FormatExpression()
{