Exemple #1
0
        private static void AssingType(FolderTypeName type)
        {
            var icons = FolderTypesStorage.Instance.GetIconsByType(type);

            ChangeSelectedFoldersIcons(icons);
        }
 private static void AssingType(FolderTypeName type, RainbowFolder folder)
 {
     var icons = FolderTypesStorage.Instance.GetIconsByType(type);
     folder.SmallIcon = icons.SmallIcon;
     folder.LargeIcon = icons.LargeIcon;
 }
Exemple #3
0
 /// <summary>
 /// Returns a string that represents the current <see cref="FolderType"/>
 /// </summary>
 /// <returns>A <see cref="System.String"/> that represents this instance.</returns>
 public override string ToString()
 {
     // Return the Primary Key as a string
     return(FolderTypeName.ToString());
 }
 //---------------------------------------------------------------------
 // Public
 //---------------------------------------------------------------------
 public FolderIconPair GetIconsByType(FolderTypeName type)
 {
     var colorFolder = TypeFolderIcons.Single(x => x.Type == type);
     return new FolderIconPair { SmallIcon = colorFolder.SmallIcon, LargeIcon = colorFolder.LargeIcon };
 }