private void LoadStatus() { Control.CheckForIllegalCrossThreadCalls = false; new Thread(() => { while (true) { var status = rpcService.JMapQueryHealthCheck(); if (status) { label1.Text = "服务加载完成."; break; } Thread.Sleep(1000); } }).Start(); }