public void Initialize()
    {
        EMG emg = new EMG();

        emg.Initialize();  //takes a lot of time
        waitHandler.WaitOne();
        emg.Start();
    }
예제 #2
0
 public button2_Click()
 {
     // jic, wait until task finished
     cameraInitTasks.Wait();
     // This one should take little time, right?
     emg.Start();
     // Go and take the picture
     DoPictureTake()
 }