public MainForm() { InitializeComponent(); _cameraPool = new CameraPool(this, Dispatcher.CurrentDispatcher); _liveViewThread = new LiveViewThread(_cameraPool, OnImageRecieved); }
public LiveViewThread(ICameraPool cameraPool, Action <MemoryStream, uint> onImageRecieved) { _cameraPool = cameraPool; _onImageRecieved = onImageRecieved; _cameraInfo = null; _isRunning = false; _thread = null; _syncObject = new object(); }
public void SetUp() { _mockery = new Mockery(); _cameraProcessor = (ICameraProcessor)_mockery.NewMock(typeof(ICameraProcessor)); _parameters = (IShootParameters)_mockery.NewMock(typeof(IShootParameters)); _imageHandler = (IImageHandler)_mockery.NewMock(typeof(IImageHandler)); _cameraPool = (ICameraPool)_mockery.NewMock(typeof(ICameraPool)); }
public MainWindow() { _cameraPool = new CameraPool(this, Dispatcher); _folderBrowser = new FolderBrowserDialog(); InitializeComponent(); }
public void PressShutterButton(ICameraPool aPool) { //aPool.GetCamera(_cameraInfo.Id).Camera.PressShutterButton(_handler); aPool.PressShutterButton(_cameraInfo, _handler); }
public void Make(ICameraPool aPool) { //aPool.GetCamera(_cameraInfo.Id).MakeAShoot(_parameters, _handler); aPool.TakeAPicture(_cameraInfo, _parameters, _handler); }