From aa6c37258baf6b213d224579e64d310f04e39768 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 09:43:14 +0000 Subject: Utilisateur : Fcolin Date : 20/01/06 Heure : 19:01 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 39) --- CSharp/Ivy/Ivy/Ivy.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'CSharp') 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(); @@ -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); } -- cgit v1.1