public static void RunWithDialog(this Action <System.Threading.CancellationToken> task) { TASKFUNC xtask = (c, p) => { p.Report(-1); task(c); return(null); }; xtask.RunWithDialog(); }
public static Object RunWithDialog(this Func <System.Threading.CancellationToken, Object> task) { TASKFUNC xtask = (c, p) => { p.Report(-1); return(task(c)); }; return(xtask.RunWithDialog()); }
public static void RunWithDialog(this Action <System.Threading.CancellationToken, IProgress <float> > task) { TASKFUNC xtask = (c, p) => { task(c, p); return(null); }; xtask.RunWithDialog(); }
public static Object RunWithDialog(this TASKFUNC task) { return(Themes.TaskMonitorDialog.RunTask(task)); }