summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:55:14 +0000
committerfcolin2007-02-01 09:55:14 +0000
commit75127418f38e09c30222233453ab54f76e4c3386 (patch)
tree9f49d80391a64b86655258684155e1cb35fa6d30 /CSharp
parent427027b49243412b61291665af5573337382d251 (diff)
downloadivy-csharp-75127418f38e09c30222233453ab54f76e4c3386.zip
ivy-csharp-75127418f38e09c30222233453ab54f76e4c3386.tar.gz
ivy-csharp-75127418f38e09c30222233453ab54f76e4c3386.tar.bz2
ivy-csharp-75127418f38e09c30222233453ab54f76e4c3386.tar.xz
Utilisateur : Fcolin Date : 20/01/06 Heure : 19:01 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 39)
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/IvyPPC/Ivy.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/CSharp/Ivy/IvyPPC/Ivy.cs b/CSharp/Ivy/IvyPPC/Ivy.cs
index d17a9e2..30b5592 100644
--- a/CSharp/Ivy/IvyPPC/Ivy.cs
+++ b/CSharp/Ivy/IvyPPC/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);
}