コード例 #1
0
 /// <summary>
 /// Function to check whether the image exists or not.
 /// </summary>
 /// <param name="imageName">The image name</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <returns>value of image</returns>
 private static string IsDeveloperImageExists(string imageName, ApplicationSettings applicationSettings)
 {
     var imagePath = Path.Combine(applicationSettings.BaseApplicationPath, applicationSettings.TeamMemberImageRelativePath, RetrieveFormattedImageName(imageName));
     return RetreiveImageURL(IsImageExists(imagePath, RetrieveFormattedImageName(imageName)), applicationSettings);
 }
コード例 #2
0
 /// <summary>
 /// Function to retrieve image URL.
 /// </summary>
 /// <param name="image">The image.</param>
 /// <param name="applicationSettings">The application settings.</param>
 /// <returns>Image URL.</returns>
 private static string RetreiveStackHolderImageURL(string image, ApplicationSettings applicationSettings)
 {
     var relativeURL = applicationSettings.StackHolderImageRelativePath.Replace("\\", "/");
     return RetrieveFormattedURL(relativeURL, image);
 }