예제 #1
0
        // Try to get a site-specific service, and if that does not
        // work, ask the host
        public Object GetService(Type type)
        {
            Object service = GetServiceFromSite(type);

            if (service == null)
            {
                service = _host.GetService(type);
            }
            if (service != null && service is IComponent)
            {
                ((IComponent)service).Site = this;
            }
            return(service);
        }
예제 #2
0
 public Object GetService(Type type)
 {
     return(_host.GetService(type));
 }