ae = new System.Threading.AutoResetEvent[1]; ae[0] = new System.Threading.AutoResetEvent(false); System.Threading.WaitHandle.WaitAny(ae);В обработчике события:
private static void DReceived(object sender, EventArgs e)
{
ae[0].Set();
}
Соответсвенно в классе необходимо объявить ae:private static System.Threading.AutoResetEvent[] ae;
Комментариев нет:
Отправить комментарий