protected sealed override ImageReference GetIcon(IDotNetImageManager dnImgMgr) { var imgRef = GetIcon(); if (imgRef.Assembly != null) return imgRef; var asm = dnImgMgr.GetType().Assembly; return ResourceUtils.TryGetImageReference(asm, resource.Name) ?? new ImageReference(asm, "Resource"); }
/// <inheritdoc/> protected sealed override ImageReference GetIcon(IDotNetImageManager dnImgMgr) { var imgRef = GetIcon(); if (!imgRef.IsDefault) { return(imgRef); } var asm = dnImgMgr.GetType().Assembly; return(ResourceUtilities.TryGetImageReference(asm, Resource.Name) ?? new ImageReference(asm, "Resource")); }
protected sealed override ImageReference GetIcon(IDotNetImageManager dnImgMgr) { var imgRef = GetIcon(); if (imgRef.Assembly != null) { return(imgRef); } var asm = dnImgMgr.GetType().Assembly; return(ResourceUtils.TryGetImageReference(asm, resourceElement.Name) ?? new ImageReference(asm, "Resource")); }