mail-archives/gtk-sharp-list/2007-October/008257.html

100 строки
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] ParamethrizedThreadNotify class
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20ParamethrizedThreadNotify%20class&In-Reply-To=22e312d80710261624m562eb4fenffbd38d1b53d6763%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="008256.html">
<LINK REL="Next" HREF="008255.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] ParamethrizedThreadNotify class</H1>
<B>Abramov Daniel</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20ParamethrizedThreadNotify%20class&In-Reply-To=22e312d80710261624m562eb4fenffbd38d1b53d6763%40mail.gmail.com"
TITLE="[Gtk-sharp-list] ParamethrizedThreadNotify class">ex at vingrad.ru
</A><BR>
<I>Fri Oct 26 19:27:05 EDT 2007</I>
<P><UL>
<LI>Previous message: <A HREF="008256.html">[Gtk-sharp-list] ParamethrizedThreadNotify class
</A></li>
<LI>Next message: <A HREF="008255.html">[Gtk-sharp-list] Question of gnome-sharp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8257">[ date ]</a>
<a href="thread.html#8257">[ thread ]</a>
<a href="subject.html#8257">[ subject ]</a>
<a href="author.html#8257">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Something bad happened to me.. :)
Not parametherized, but parameterized :)) . Possibly that's because of 'th'
in 'thread'...
So it should look like:
using Gtk;
namespace Gtk
{
public delegate void ParameterizedReadyEvent&lt;T&gt; (T param);
public class ParameterizedThreadNotify&lt;T&gt;
{
private ThreadNotify te;
private ParameterizedReadyEvent&lt;T&gt; pre;
private T param;
public ParameterizedThreadNotify (ParameterizedReadyEvent&lt;T&gt; pre)
{
this.pre = pre;
this.te = new ThreadNotify (this.ReadyEvent);
}
private void ReadyEvent ()
{
this.pre (this.param);
}
public void WakeupMain (T param)
{
this.param = param;
this.te.WakeupMain ();
}
}
}
Sorry again.
--
Best regards,
Daniel Abramov aka Exception
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <A HREF="http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071027/e5b70c4f/attachment.html">http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071027/e5b70c4f/attachment.html</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="008256.html">[Gtk-sharp-list] ParamethrizedThreadNotify class
</A></li>
<LI>Next message: <A HREF="008255.html">[Gtk-sharp-list] Question of gnome-sharp
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#8257">[ date ]</a>
<a href="thread.html#8257">[ thread ]</a>
<a href="subject.html#8257">[ subject ]</a>
<a href="author.html#8257">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>