Exemple #1
0
 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>();
 }
Exemple #2
0
        private void FindThrowOnRemainingCams(CamWindow succeededCam)
        {
            logger.Info($"Finding throws from remaining cams start. Succeeded cam: {succeededCam.camNumber}");

            foreach (var cam in cams.Where(cam => cam != succeededCam))
            {
                cam.FindThrow();
                cam.FindAndProcessDartContour();
            }

            throwService.CalculateAndSaveThrow();

            logger.Info($"Finding throws from remaining cams end");
        }