Пример #1
0
 public static void Start(string sourcefile, string environmentName, string scriptPath, string ckptPath, int deviceID, int sleepInterval)
 {
     IsRunning = true;
     PWCNetUtils.Start(environmentName, scriptPath, deviceID, ckptPath, null, sleepInterval);
     _sourcefile    = sourcefile;
     _sleepinterval = Math.Max(1, sleepInterval);
     _thread        = new Thread(new ThreadStart(scanFile));
     _thread.Start();
 }
Пример #2
0
 public static void Start(string image1, string image2, string output, string environmentName, string scriptPath, string ckptPath, int deviceID, int sleepInterval)
 {
     IsRunning = true;
     PWCNetUtils.Start(environmentName, scriptPath, deviceID, ckptPath, output, sleepInterval);
     _image1        = image1;
     _image2        = image2;
     _sleepinterval = Math.Max(1, sleepInterval);
     _thread        = new Thread(new ThreadStart(scanFile));
     _thread.Start();
 }