public TeamPictureViewModel( IRepository<DomainModel.TeamPicture.TeamPicture> teamPictureRepository, IPersistDomainModelsAsync<DomainModel.TeamPicture.TeamPicture> teamPicturePersister, ITimer refreshTimer, IInvokeBackgroundWorker<IEnumerable<DomainModel.TeamPicture.TeamPicture>> backgroundWorker, ILog log, IWebcamService webcam, IProgressbar progressbarService) : this() { _teamPictureRepository = teamPictureRepository; _teamPicturePersister = teamPicturePersister; _refreshTimer = refreshTimer; _backgroundWorker = backgroundWorker; _log = log; _webcamService = webcam; _webcamService.CaptureImageCompleted += ImageCapturedFromWebCam; _refreshTimer.Start(REFRESH_INTERVAL); _progressbarService = progressbarService; _refreshTimer.Elapsed += _refreshTimer_Elapsed; _teamPicturePersister.SaveCompleted += ConfigPersisterSaveCompleted; LoadDataFromDatabaseIntoViewModel(); }
public WebcamController(IWebcamService webcamService, CameraConfiguration cameraConfiguration) { _webcamService = webcamService; _cameraConfiguration = cameraConfiguration; }