public CanonCameraApp()
        {
            InitializeComponent();
            api = CameraAPI.Instance;
            takePhotoDelegate = new TakePhotoDelegate(takePhotograph);

            init();
        }
Beispiel #2
0
 /// <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();
 }