public bool WaitForPause()
{
bool flag = true;
do
{
Thread.Sleep(100);
}
while (!rspDataIn.ThreadCtrl.CheckForThreadIdle(ThreadControl.CheckIdleModes.Paused)
|| !txDataOut.threadCtrl.CheckForThreadIdle(ThreadControl.CheckIdleModes.Paused)
|| !rxDataIn.ThreadCtrl.CheckForThreadIdle(ThreadControl.CheckIdleModes.Paused)
|| !rxTxMgr.threadCtrl.CheckForThreadIdle(ThreadControl.CheckIdleModes.Paused)
);
return flag;
}