private void PictureBox_DoubleClick(object sender, EventArgs e)
        {
            PictureBox pictureBox            = (PictureBox)sender;
            string     selectedImageLocation = Globals.ImagesDir + navigatorPath.Id + "\\";

            if (pictureBox == pbStraight)
            {
                selectedImageLocation += navigatorPoint.Img1;
            }
            else if (pictureBox == pbLeft)
            {
                selectedImageLocation += navigatorPoint.Img2;
            }
            else if (pictureBox == pbBehind)
            {
                selectedImageLocation += navigatorPoint.Img3;
            }
            else if (pictureBox == pbRight)
            {
                selectedImageLocation += navigatorPoint.Img4;
            }

            ImageForm imageForm = new ImageForm();

            imageForm.LoadImage(selectedImageLocation);
            imageForm.ShowDialog();
        }
Example #2
0
        private void pbCurrentImage_DoubleClick(object sender, EventArgs e)
        {
            ImageForm imageForm = new ImageForm();

            imageForm.LoadImage(imagePath);
            imageForm.ShowDialog();
        }