protected async void OnTakePicture() { if (CamService.IsRunning) { CamService.StopContinuousPictures(); } else { FrameCount = 0; switch (SelectedState) { case CaptureState.Continous: case CaptureState.Preview: case CaptureState.ContinousStacked: CamService.StartContinuousPictures(100, SelectedState == CaptureState.Preview, SelectedState == CaptureState.ContinousStacked); break; case CaptureState.Single: await CamService.TakePicture(100); break; } } StateHasChanged(); }
public CamWindowViewModel(CamWindow camWindowView) { this.camWindowView = camWindowView; camService = new CamService(camWindowView); measureService = new MeasureService(camService); configService = MainWindow.ServiceContainer.Resolve <ConfigService>(); logger = MainWindow.ServiceContainer.Resolve <Logger>(); }
public void TestSetup() { uut = new CamService(TriggerType.Application, null); }
public ImageController(CamService camService) { _camService = camService; }