private void SetWaitPic() { FrmFrame ff = new FrmFrame() { Width = 284, Height = 258, Text = "正在加载,请稍后..." }; WaitPic wp = new WaitPic(); ff.SetUserControl(wp); ff.Show(); while (SROperation2.Instance.isLoading) { wp.SetReadCount(); ff.Refresh(); } }