GetFullName() public method

public GetFullName ( string shortName ) : string
shortName string
return string
        private void ImportFolder(ImagesFolder folder, string folderPath)
        {
            var files = new Dictionary <string, List <string> >();

            LoadImages(folderPath, false, string.Empty, files);

            foreach (var kvp in files)
            {
                var prefix = string.IsNullOrEmpty(kvp.Key) ? string.Empty : kvp.Key + ImagesFolder.NameSeparator;
                foreach (var file in kvp.Value)
                {
                    var shortName = Path.GetFileNameWithoutExtension(file);
                    folder.AddImage(folder.GetFullName(prefix + shortName), _loadedImages[file]);
                }
            }
        }
Example #2
0
		private void ImportFolder(ImagesFolder folder, string folderPath)
		{
			var files = new Dictionary<string, List<string>>();

			LoadImages(folderPath, false, string.Empty, files);

			foreach (var kvp in files)
			{
				var prefix = string.IsNullOrEmpty(kvp.Key) ? string.Empty : kvp.Key + ImagesFolder.NameSeparator;
				foreach (var file in kvp.Value)
				{
					var shortName = Path.GetFileNameWithoutExtension(file);
					folder.AddImage(folder.GetFullName(prefix + shortName), _loadedImages[file]);
				}
			}
		}