예제 #1
0
        public IWaitDialog CreateWaitDialog(DialogMode dialogMode)
        {
            IWaitDialog dialog = null;

            InvokeInUIThread(() =>
            {
                dialog = WaitProgressDialog.CreateWaitDialog(_dialogHost, dialogMode, _dispatcher);
                dialog.CloseWhenWorkerFinished = true;
            });
            return(dialog);
        }
예제 #2
0
        public IWaitDialog CreateWaitDialog(string message, string readyMessage, DialogMode dialogMode)
        {
            IWaitDialog dialog = null;

            InvokeInUIThread(() =>
            {
                dialog = WaitProgressDialog.CreateWaitDialog(_dialogHost, dialogMode, _dispatcher);
                dialog.CloseWhenWorkerFinished = false;
                dialog.Message      = message;
                dialog.ReadyMessage = readyMessage;
            });
            return(dialog);
        }