public void RefreshTxt() { while (true) { if (totalCount > 0) { Loading.BeginInvoke(new Action(delegate() { Loading.Text = $"已加载{currCount}条/共{totalCount}条"; })); ErrorPhoneTxt.BeginInvoke(new Action(delegate() { ErrorPhoneTxt.Text = $"共{noSearchCount}未识别"; })); } Thread.Sleep(500); } }