summaryrefslogtreecommitdiff
path: root/CSharp/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 09:56:35 +0000
committerfcolin2007-02-01 09:56:35 +0000
commitcb4f5f7090de88be0cbcf235f4a980de0cf66969 (patch)
tree5595711358d7514770ce9256db85ab40896d533d /CSharp/Ivy
parent4fc629dc1600f24549b0e1f68a8bb7ad5841820c (diff)
downloadivy-csharp-cb4f5f7090de88be0cbcf235f4a980de0cf66969.zip
ivy-csharp-cb4f5f7090de88be0cbcf235f4a980de0cf66969.tar.gz
ivy-csharp-cb4f5f7090de88be0cbcf235f4a980de0cf66969.tar.bz2
ivy-csharp-cb4f5f7090de88be0cbcf235f4a980de0cf66969.tar.xz
Utilisateur : Fcolin Date : 30/06/06 Heure : 14:37 Archivé dans $/CSharp/Ivy/Ivy Commentaire: (vss 3)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs20
1 files changed, 19 insertions, 1 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs b/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs
index d76e4a4..c24ae28 100644
--- a/CSharp/Ivy/IvyPPC/IvyApplicationBinding.cs
+++ b/CSharp/Ivy/IvyPPC/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
}
}