public static int SpawnDeleteWork(FileSystemInfoEx[] items, bool showProgressDialog) { lock (onGoingWorkList) { IExWork retVal = new DeleteWork(newKey(), items); retVal.IsProgressDialogEnabled = showProgressDialog; hookWorkEvent(retVal); return(addWork(retVal.ID, retVal)); } }
public static int SpawnDeleteWork(FileSystemInfoEx[] items, bool showProgressDialog) { lock (onGoingWorkList) { IExWork retVal = new DeleteWork(newKey(), items); retVal.IsProgressDialogEnabled = showProgressDialog; hookWorkEvent(retVal); return addWork(retVal.ID, retVal); } }