public void Run(IVisualStudioPackage package)
 {
     // Register handler to receive custom messages from the Dkm components.
       DkmComponentEventHandler handler = new DkmComponentEventHandler(package);
       IServiceContainer container = (IServiceContainer)package;
       container.AddService(handler.GetType(), handler, true);
 }
Beispiel #2
0
        public void Run(IVisualStudioPackage package)
        {
            // Register handler to receive custom messages from the Dkm components.
            DkmComponentEventHandler handler   = new DkmComponentEventHandler(package);
            IServiceContainer        container = (IServiceContainer)package;

            container.AddService(handler.GetType(), handler, true);
        }