static Texture GetCategoryIcon( IncomingChangesCategory.Type categoryType) { switch (categoryType) { case IncomingChangesCategory.Type.DirectoryConflicts: case IncomingChangesCategory.Type.FileConflicts: return(Images.GetImage(Images.Name.IconMergeConflict)); case IncomingChangesCategory.Type.Changed: return(Images.GetImage(Images.Name.IconChanged)); case IncomingChangesCategory.Type.Moved: return(Images.GetImage(Images.Name.IconMoved)); case IncomingChangesCategory.Type.Deleted: return(Images.GetImage(Images.Name.IconDeleted)); case IncomingChangesCategory.Type.Added: return(Images.GetImage(Images.Name.IconAdded)); default: return(null); } }
internal static string BuildCacheKey( IncomingChangesCategory.Type type, string path) { return(string.Concat(type, ":", path)); }