protected void Dispose(bool disposing) { if (disposing) { // free managed resources if (Device != null) { Device.Stop(); Device.Dispose(); Device = null; } } // free native resources if there are any. }
public CLEyeCameraImage() { Device = new CLEyeCameraDevice(); Device.BitmapReady += OnBitmapReady; }