public CanonCameraApp() { InitializeComponent(); api = CameraAPI.Instance; takePhotoDelegate = new TakePhotoDelegate(takePhotograph); init(); }
/// <summary> /// Makes it so that code outside this assembly cannot instantiate a Camera class. /// </summary> /// <param name="cameraDevice">Pointer to the instance of the camera device.</param> internal Camera(IntPtr cameraDevice) { this.cameraApi = CameraAPI.Instance; this.cameraDevice = cameraDevice; this.registerEvents(); }