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

            this.InvokeInUIThread(() =>
            {
                dialog = WaitProgressDialog.CreateWaitDialog(this.dialogHost, dialogMode, this.dispatcher, isIndeterminate);
                dialog.CloseWhenWorkerFinished = true;
            });
            return(dialog);
        }
예제 #2
0
        public IProgressDialog CreateProgressDialog(string message, string readyMessage, DialogMode dialogMode, bool isIndeterminate = false)
        {
            IProgressDialog dialog = null;

            this.InvokeInUIThread(() =>
            {
                dialog = WaitProgressDialog.CreateProgressDialog(this.dialogHost, dialogMode, this.dispatcher, isIndeterminate);
                dialog.CloseWhenWorkerFinished = false;
                dialog.ReadyMessage            = readyMessage;
                dialog.Message = message;
            });
            return(dialog);
        }
예제 #3
0
        public static IProgressDialog CreateProgressDialog(
            IDialogHost dialogHost,
            DialogMode dialogMode,
            Dispatcher dispatcher,
            bool isIndeterminate)
        {
            IProgressDialog dialog = null;

            dispatcher.Invoke(
                new Action(() => dialog = new WaitProgressDialog(
                               dialogHost, dialogMode, isIndeterminate, dispatcher)),
                DispatcherPriority.DataBind);
            return(dialog);
        }