From f040dbb2314294a72a4f3238641829e91419f031 Mon Sep 17 00:00:00 2001 From: Ed Harvey Date: Mon, 4 Apr 2011 12:03:42 +1000 Subject: [PATCH] Added distinct node icon for virtual methods --- ILSpy/ILSpy.csproj | 1 + ILSpy/Images/Images.cs | 5 +++++ ILSpy/Images/MemberIcon.cs | 1 + ILSpy/Images/VirtualMethod.png | Bin 0 -> 412 bytes ILSpy/TreeNodes/MethodTreeNode.cs | 5 ++++- 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ILSpy/Images/VirtualMethod.png diff --git a/ILSpy/ILSpy.csproj b/ILSpy/ILSpy.csproj index 52a957f1f..f69fe767f 100644 --- a/ILSpy/ILSpy.csproj +++ b/ILSpy/ILSpy.csproj @@ -234,6 +234,7 @@ + diff --git a/ILSpy/Images/Images.cs b/ILSpy/Images/Images.cs index 0545f22c2..c1b4f7506 100644 --- a/ILSpy/Images/Images.cs +++ b/ILSpy/Images/Images.cs @@ -54,6 +54,7 @@ namespace ICSharpCode.ILSpy private static readonly BitmapImage Method = LoadBitmap("Method"); private static readonly BitmapImage Constructor = LoadBitmap("Constructor"); + private static readonly BitmapImage VirtualMethod = LoadBitmap("VirtualMethod"); private static readonly BitmapImage Operator = LoadBitmap("Operator"); private static readonly BitmapImage ExtensionMethod = LoadBitmap("ExtensionMethod"); @@ -147,6 +148,7 @@ namespace ICSharpCode.ILSpy PreloadPublicIconToCache(MemberIcon.Indexer, Images.Indexer); PreloadPublicIconToCache(MemberIcon.Method, Images.Method); PreloadPublicIconToCache(MemberIcon.Constructor, Images.Constructor); + PreloadPublicIconToCache(MemberIcon.VirtualMethod, Images.VirtualMethod); PreloadPublicIconToCache(MemberIcon.Operator, Images.Operator); PreloadPublicIconToCache(MemberIcon.ExtensionMethod, Images.ExtensionMethod); PreloadPublicIconToCache(MemberIcon.Event, Images.Event); @@ -180,6 +182,9 @@ namespace ICSharpCode.ILSpy case MemberIcon.Constructor: baseImage = Images.Constructor; break; + case MemberIcon.VirtualMethod: + baseImage = Images.VirtualMethod; + break; case MemberIcon.Operator: baseImage = Images.Operator; break; diff --git a/ILSpy/Images/MemberIcon.cs b/ILSpy/Images/MemberIcon.cs index 187adf31f..3112a2cc7 100644 --- a/ILSpy/Images/MemberIcon.cs +++ b/ILSpy/Images/MemberIcon.cs @@ -30,6 +30,7 @@ namespace ICSharpCode.ILSpy Indexer, Method, Constructor, + VirtualMethod, Operator, ExtensionMethod, Event diff --git a/ILSpy/Images/VirtualMethod.png b/ILSpy/Images/VirtualMethod.png new file mode 100644 index 0000000000000000000000000000000000000000..6a3dfe74a64b36234801899b0745f12721648565 GIT binary patch literal 412 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`)Ym%P6qN7l0AZa z85pWm85kOx85n;42huMY7)lKo7+xhXFj&oCU=Yur6o1qWsFt(9BeIx*L8u6X8RJr; z9|Hx&N?apKg7ec#$`gxH8440J^GfvcQcDy}^bD+De9Z)^_~7Z{7-Hd{oUlNB$DBIX z?_~$){#TG%zxTfVnt%0QU(NcTy=~3!`=-Tr>n9}5cov^s|5yE#K#8=&th(GkU;kg< zbpL<-*&n@k1ty%;pYN1oU%~RCX>IoZ^ASvi2d~b_{vYpO!F-M9uy$;CT{a3&I16#~zrrE76 zu?;ex6vFSE*vn~_u