Ejemplo n.º 1
0
        public override void Initialize(System.ComponentModel.IComponent component)
        {
            base.Initialize(component);

            IDesignerHost host = (IDesignerHost)GetService(typeof(IDesignerHost));

            if (host == null)
            {
                return;
            }

            IInheritanceService inheritanceService = (IInheritanceService)GetService(typeof(IInheritanceService));

            m_inheritanceService = new InlineInheritanceService(this, inheritanceService);
            host.RemoveService(typeof(IInheritanceService));
            host.AddService(typeof(IInheritanceService), m_inheritanceService);
        }
Ejemplo n.º 2
0
 public InlineInheritanceService(TFrameDesigner owner, IInheritanceService parentService)
 {
     m_parentService = parentService;
     m_owner         = owner;
 }