summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:43:14 +0000
committerfcolin2007-02-01 09:43:14 +0000
commitaa6c37258baf6b213d224579e64d310f04e39768 (patch)
tree62aa96809ef3bea2d85c25d7bc1ea6a1cdec9c69
parentc5f4cb3a4aec71181323f71706bca25ce3cb1adf (diff)
downloadivy-csharp-aa6c37258baf6b213d224579e64d310f04e39768.zip
ivy-csharp-aa6c37258baf6b213d224579e64d310f04e39768.tar.gz
ivy-csharp-aa6c37258baf6b213d224579e64d310f04e39768.tar.bz2
ivy-csharp-aa6c37258baf6b213d224579e64d310f04e39768.tar.xz
Utilisateur : Fcolin Date : 20/01/06 Heure : 19:01 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 39)
-rw-r--r--CSharp/Ivy/Ivy/Ivy.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/CSharp/Ivy/Ivy/Ivy.cs b/CSharp/Ivy/Ivy/Ivy.cs
index d17a9e2..30b5592 100644
--- a/CSharp/Ivy/Ivy/Ivy.cs
+++ b/CSharp/Ivy/Ivy/Ivy.cs
@@ -226,7 +226,13 @@ namespace IvyBus
internal CultureInfo culture = new CultureInfo("en-us");
// for synchronous event
- private Control syncControl = null;
+ private Control syncControl = null;
+
+ public Control SyncControl
+ {
+ get { return syncControl; }
+ set { syncControl = value; }
+ }
public Ivy()
{
clients = new List<IvyClient>();
@@ -738,7 +744,7 @@ namespace IvyBus
{
throw new IvyException("(callCallback) Not regexp matching id " + key);
}
- if ( syncControl != null && syncControl.Created )
+ if ( IsSynchronous() )
syncControl.Invoke(bind.callback, new object[] { client, arg });
else bind.callback(client, arg);
}