コード例 #1
0
ファイル: frmWaiting.cs プロジェクト: wuhuayun/JieLi_Cord
        public static void ShowMe(Form owner, string message)
        {
            owner.UseWaitCursor = true;

            if (_Instance == null || _Instance.IsDisposed)
            {
                _Instance = new frmWaiting();
            }
            _Instance.Owner       = owner;
            _Instance.lblMsg.Text = String.IsNullOrEmpty(message) ? _Instance.lblMsg.Text : message;
            _Instance.lblMsg.Invalidate();
            _Instance.Show();

            Application.DoEvents();
        }