diff options
author | fcolin | 2007-02-01 09:45:09 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:45:09 +0000 |
commit | 62ec7bcc90e377221e69c6614367dcea1d507609 (patch) | |
tree | c84e3162b1d79624e0ffc21789e828e95967feda /CSharp/Ivy | |
parent | afe2387d6dcbacffc18532e5ccb3d36e1433cc02 (diff) | |
download | ivy-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)
Diffstat (limited to 'CSharp/Ivy')
-rw-r--r-- | CSharp/Ivy/Ivy/IvyApplicationBinding.cs | 20 |
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
}
}
|