Dev WaitDialog 使用

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
public class WaitDialogBase : TutorialControlBase
    {
        //private DevExpress.Utils.WaitDialogForm dlg = null;
 
        //public void CreateWaitDialog(string caption = "", string title = "")
        //{
        //    if (title == "")
        //    {
        //        dlg = new DevExpress.Utils.WaitDialogForm(caption);
        //    }
        //    else
        //    {
        //        dlg = new DevExpress.Utils.WaitDialogForm(caption, title);
        //    }
 
        //    //TutorialControlBase tcBase = new TutorialControlBase();
        //    //tcBase.CreateWaitDialog();
        //    //tcBase.Hide().SetWaitDialogCaption("正在查询数据...");
        //}
 
        //public void SetWaitDialogCaption(string fCaption)
        //{
        //    if (dlg != null)
        //    {
        //        dlg.Caption = fCaption;
        //    }
        //}
 
        //public void CloseWaitDialog()
        //{
        //    dlg.Close();
        //}
 
        public void OnLoad()
        {
            OnLoad(null);
        }
    }

  

1
2
3
4
5
6
7
8
//查询数据等待提示信息
            using (WaitDialogBase wdBase = new WaitDialogBase())
            {
                wdBase.CreateWaitDialog();
                wdBase.SetWaitDialogCaption("正在查询数据...");
                LoadGridView(dt1, dt2);
                wdBase.OnLoad();
            }

  

posted @   mapstar  阅读(535)  评论(0编辑  收藏  举报

喜欢请打赏

扫描二维码打赏

支付宝打赏

点击右上角即可分享
微信分享提示