Ejemplo n.º 1
0
        public IProgressDialog CreateProgressDialog(DialogMode dialogMode)
        {
            IProgressDialog dialog = null;

            InvokeInUIThread(() =>
            {
                dialog = WaitProgressDialog.CreateProgressDialog(_dialogHost, dialogMode, _dispatcher);
                dialog.CloseWhenWorkerFinished = true;
            });
            return(dialog);
        }
Ejemplo n.º 2
0
        public IWaitDialog CreateWaitDialog(string message, DialogMode dialogMode)
        {
            IWaitDialog dialog = null;

            InvokeInUIThread(() =>
            {
                dialog = WaitProgressDialog.CreateWaitDialog(_dialogHost, dialogMode, _dispatcher);
                dialog.CloseWhenWorkerFinished = true;
                dialog.Message = message;
            });
            return(dialog);
        }
Ejemplo n.º 3
0
		public static IProgressDialog CreateProgressDialog(
			IDialogHost dialogHost,
			DialogMode dialogMode,
			Dispatcher dispatcher)
		{
			IProgressDialog dialog = null;
			dispatcher.Invoke(
				new Action(() => dialog = new WaitProgressDialog(
					dialogHost, dialogMode, false, dispatcher)),
				DispatcherPriority.DataBind);
			return dialog;
		}
Ejemplo n.º 4
0
        public static IProgressDialog CreateProgressDialog(
            IDialogHost dialogHost,
            DialogMode dialogMode,
            Dispatcher dispatcher)
        {
            IProgressDialog dialog = null;

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