[Gtk-sharp-list] ParamethrizedThreadNotify class
ex at vingrad.ru
Fri Oct 26 19:24:30 EDT 2007
Hello! I've written kind of wrapper for ThreadNotify class, if you want to
pass a parameter(s) to the method being invoked.
Thought it might be useful for some, so I post it here. Hope you'll add it
public delegate void ParametherizedReadyEvent<T> (T param);
public class ParametherizedThreadNotify<T>
private ThreadNotify te;
private ParametherizedReadyEvent<T> pre;
private T param;
public ParametherizedThreadNotify (ParametherizedReadyEvent<T> pre)
this.pre = pre;
this.te = new ThreadNotify (this.ReadyEvent);
private void ReadyEvent ()
public void WakeupMain (T param)
this.param = param;
It's just that simple so I just copied it from clipboard and did not upload
I've tested it, and that works.
Daniel Abramov aka Exception
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gtk-sharp-list