25 lines
618 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Text;
namespace DevComponents.DotNetBar.Design
{
internal class GlyphServiceProvider : IServiceProvider
{
private IServiceProvider source;
public GlyphServiceProvider(IServiceProvider source)
{
this.source = source;
}
object IServiceProvider.GetService(Type serviceType)
{
if (serviceType.Equals(typeof(ISelectionService)))
return (object)null;
return this.source.GetService(serviceType);
}
}
}