Beispiel #1
0
 public FileSystemWorker(string driveName, ProgressCallback progressCallback, FileDataReturnCallback fileDataReturnCallback)
 {
     _driveName               = driveName;
     _progressCallback        = progressCallback;
     _fileDataReturnCallback  = fileDataReturnCallback;
     _workerThread            = new Thread(ThMain);
     _progressMonitorThread   = new Thread(ThProgressMonitor);
     progressManualResetEvent = new ManualResetEvent(true);
 }
Beispiel #2
0
 public static bool CreateFileSystemDriveData(string driveName, ProgressCallback progressCallback, FileDataReturnCallback fileDataReturnCallback)
 {
     if (_fileSystemWorker == null)
     {
         _fileSystemWorker = new FileSystemWorker(driveName, progressCallback, fileDataReturnCallback);
         _fileSystemWorker.Start();
         return(true);
     }
     return(false);
 }