public static void RunTask <T>(TASKACTION task, Window parentWindow = null, string windowTitle = null) where T : TaskMonitorWindow, new() { if (task == null) { throw new ArgumentNullException(nameof(task)); } TASKFUNCTION func = (c, p) => { task(c, p); return(null); }; RunTask <T>(func, parentWindow, windowTitle); }
public static void RunTask(TASKACTION task, Window parentWindow = null, string windowTitle = null) { TASKFUNCTION func = (c, p) => { task(c, p); return(null); }; RunTask(func, parentWindow, windowTitle); }