Hello! I&#39;ve written kind of wrapper for ThreadNotify class, if you want to pass a parameter(s) to the method being invoked.<br>Thought it might be useful for some, so I post it here. Hope you&#39;ll add it to SVN/<br><br>
using System;<br>using Gtk;<br><br>namespace Gtk<br>{<br>&nbsp;&nbsp;&nbsp; public delegate void ParametherizedReadyEvent&lt;T&gt; (T param);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; public class ParametherizedThreadNotify&lt;T&gt;<br>&nbsp;&nbsp;&nbsp; {&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private ThreadNotify te;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private ParametherizedReadyEvent&lt;T&gt; pre;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private T param;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; public ParametherizedThreadNotify (ParametherizedReadyEvent&lt;T&gt; pre)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.pre = pre;
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.te = new ThreadNotify (this.ReadyEvent);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; private void ReadyEvent ()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.pre (this.param);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; public void WakeupMain (T param)
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.param = param;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; this.te.WakeupMain ();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br clear="all">It&#39;s just that simple so I just copied it from clipboard and did not upload the file.
<br>I&#39;ve tested it, and that works.<br><br>-- <br>Best regards,<br>Daniel Abramov aka Exception