public override bool OnEvent(QEvent e)
 {
     if (e != null && e.type() == QEvent.Type.User)
     {
         ThreadEvent my = e as ThreadEvent;
         if (e != null)
         {
             my.dele();
             my.handle.Free();                      // free the handle so the event can be collected
             return(true);
         }
     }
     return(false);
 }
Esempio n. 2
0
 public override bool OnEvent(QEvent e)
 {
     if (e != null && e.type == QEvent.Type.User) {
         ThreadEvent my = e as ThreadEvent;
         if (e != null) {
             my.dele();
             my.handle.Free();  // free the handle so the event can be collected
             return true;
         }
     }
     return false;
 }