Dev WaitDialog 使用

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);
        }
    }

  

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

  

猜你喜欢

转载自www.cnblogs.com/mapstar/p/10945471.html
Dev
今日推荐