public void Initialize() { EMG emg = new EMG(); emg.Initialize(); //takes a lot of time waitHandler.WaitOne(); emg.Start(); }
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() }