public static int SpawnListWork(DirectoryInfoEx[] dirs, bool listDir, bool listFile, string fileMask, bool showProgressDialog) { lock (onGoingWorkList) { IExWork retVal = new ListWork(newKey(), dirs, listDir, listFile, fileMask); retVal.IsProgressDialogEnabled = showProgressDialog; hookWorkEvent(retVal); return(addWork(retVal.ID, retVal)); } }
public static int SpawnListWork(DirectoryInfoEx[] dirs, bool listDir, bool listFile, string fileMask, bool showProgressDialog) { lock (onGoingWorkList) { IExWork retVal = new ListWork(newKey(), dirs, listDir, listFile, fileMask); retVal.IsProgressDialogEnabled = showProgressDialog; hookWorkEvent(retVal); return addWork(retVal.ID, retVal); } }