Пример #1
0
 public static Tuple <Message, TObject> WaitForSingleWndProc <TObject>(Func <Message, bool> predicate, Func <Message, TObject> generator)
 {
     using (WndProcReceiverForm form = new WndProcReceiverForm())
     {
         form.Show();
         return(form.WaitForWndProc(predicate, generator));
     }
 }
Пример #2
0
 public static Message WaitForSingleWndProc(Func <Message, bool> predicate)
 {
     using (WndProcReceiverForm form = new WndProcReceiverForm())
     {
         form.Show();
         return(form.WaitForWndProc(predicate));
     }
 }