summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:45:09 +0000
committerfcolin2007-02-01 09:45:09 +0000
commit62ec7bcc90e377221e69c6614367dcea1d507609 (patch)
treec84e3162b1d79624e0ffc21789e828e95967feda
parentafe2387d6dcbacffc18532e5ccb3d36e1433cc02 (diff)
downloadivy-csharp-62ec7bcc90e377221e69c6614367dcea1d507609.zip
ivy-csharp-62ec7bcc90e377221e69c6614367dcea1d507609.tar.gz
ivy-csharp-62ec7bcc90e377221e69c6614367dcea1d507609.tar.bz2
ivy-csharp-62ec7bcc90e377221e69c6614367dcea1d507609.tar.xz
Utilisateur : Fcolin Date : 30/06/06 Heure : 14:37 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 3)
-rw-r--r--CSharp/Ivy/Ivy/IvyApplicationBinding.cs20
1 files changed, 19 insertions, 1 deletions
diff --git a/CSharp/Ivy/Ivy/IvyApplicationBinding.cs b/CSharp/Ivy/Ivy/IvyApplicationBinding.cs
index d76e4a4..c24ae28 100644
--- a/CSharp/Ivy/Ivy/IvyApplicationBinding.cs
+++ b/CSharp/Ivy/Ivy/IvyApplicationBinding.cs
@@ -126,7 +126,7 @@ namespace IvyBus
}
-
+#if ( SyncContext)
internal void Firevent(System.Threading.SynchronizationContext syncContext, IvyMessageEventArgs e)
{
//// Safely invoke an event:
@@ -148,6 +148,24 @@ namespace IvyBus
else
temp(this, e);
}
+#else
+ internal void Firevent(System.Windows.Forms.Control control, IvyMessageEventArgs e)
+ {
+ //// Safely invoke an event:
+ EventHandler<IvyMessageEventArgs> temp = Callback;
+
+ if (temp == null)
+ {
+ throw new IvyException("(callCallback) Not callback for id " + e.Id);
+ }
+ if (control != null)
+ {
+ control.Invoke(temp,this, e);
+ }
+ else
+ temp(this, e);
+ }
+#endif
}
}