Пример #1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.IndividualImgHandler = ((Ajubaa.IBModeler.UI.GetCameraParamsInputThroughImgPoints.IndividualImgHandler)(target));
         return;
     }
     this._contentLoaded = true;
 }
Пример #2
0
        private void ProcessImage(int imgIndex)
        {
            List <ClickPositionOnImage> imgPositions = null;
            var rotateImageBy = 0.0;

            var nextImageName     = Path.GetFileName(FilePaths[imgIndex]);
            var inputForNextImage = ImageClickInputDetails.FirstOrDefault(x => x.ImageName == nextImageName);

            if (inputForNextImage != null)
            {
                imgPositions  = inputForNextImage.ClickPositionListForImages;
                rotateImageBy = inputForNextImage.RotateImageBy;
            }

            _processingImgIndex = imgIndex;
            IndividualImgHandler.ProcessImage(FilePaths[imgIndex], imgPositions, rotateImageBy, imgIndex + 1, FilePaths.Count());
        }