Beispiel #1
0
        public static void RunWithDialog(this Action <System.Threading.CancellationToken> task)
        {
            TASKFUNC xtask = (c, p) => { p.Report(-1); task(c); return(null); };

            xtask.RunWithDialog();
        }
Beispiel #2
0
        public static Object RunWithDialog(this Func <System.Threading.CancellationToken, Object> task)
        {
            TASKFUNC xtask = (c, p) => { p.Report(-1); return(task(c)); };

            return(xtask.RunWithDialog());
        }
Beispiel #3
0
        public static void RunWithDialog(this Action <System.Threading.CancellationToken, IProgress <float> > task)
        {
            TASKFUNC xtask = (c, p) => { task(c, p); return(null); };

            xtask.RunWithDialog();
        }
Beispiel #4
0
 public static Object RunWithDialog(this TASKFUNC task)
 {
     return(Themes.TaskMonitorDialog.RunTask(task));
 }