//循环执行 private void playLoop() { if (updateDelegate == null) { updateDelegate = new updateBox_PreviewBoxSafe(threadLoop); } while (beShown) { if (uiControl.InvokeRequired) { uiControl.Invoke(updateDelegate); } else { threadLoop(); } if (threadSleep > 0) { Thread.Sleep(threadSleep); } } }
//循环执行 private void playLoop() { if (updateDelegate == null) { updateDelegate = new updateBox_PreviewBoxSafe(threadLoop); } while (beShown) { if (uiControl.InvokeRequired) { uiControl.Invoke(updateDelegate); } else { threadLoop(); } if (threadSleep > 0) { Thread.Sleep(threadSleep); } } }