예제 #1
0
		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");
		}
예제 #2
0
        /// <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"));
        }
예제 #3
0
        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"));
        }