protected void enlargePicture(string source, string subPath = @"\Photos\") { FormPicture largePic = new FormPicture(); updatePhotoPreview(largePic.pictureRoad, source, subPath); largePic.Show(); }
protected void enlargePicture(string source, string subPath, string[] listOfPhotos = null) { string folderPath = Project.projectFolderPath + "\\" + subPath + "\\"; FormPicture largePic = new FormPicture(listOfPhotos, source, folderPath); if (!string.IsNullOrEmpty(source)) { largePic.pictureBox.ImageLocation = folderPath + source; } else { largePic.pictureBox.Image = Properties.Resources.nophoto; } largePic.Show(); }