public BrowseScriptsPageControl()
        {
            m_RemoteBridge = ObjectFactory.Get<RemoteBridge>();

            var appHostChildHandle = new ChildProcessFactory().Create("RedGate.SSC.Windows.Client.dll", Debugger.IsAttached);

            AppHostServices appHostServices = new AppHostServices();
            appHostServices.RegisterService<RemoteBridge, ICallbacksRegistrationService>(m_RemoteBridge);
            appHostServices.RegisterService<RemoteBridge, ISsmsOperations>(m_RemoteBridge);

            var element = appHostChildHandle.CreateElement(appHostServices);

            Controls.Add(new ElementHost
                         {
                             Dock = DockStyle.Fill,
                             Child = element
                         });
        }
        public BrowseScriptsPageControl()
        {
            m_RemoteBridge = ObjectFactory.Get <RemoteBridge>();

            var appHostChildHandle = new ChildProcessFactory().Create("RedGate.SSC.Windows.Client.dll", Debugger.IsAttached);

            AppHostServices appHostServices = new AppHostServices();

            appHostServices.RegisterService <RemoteBridge, ICallbacksRegistrationService>(m_RemoteBridge);
            appHostServices.RegisterService <RemoteBridge, ISsmsOperations>(m_RemoteBridge);

            var element = appHostChildHandle.CreateElement(appHostServices);

            Controls.Add(new ElementHost
            {
                Dock  = DockStyle.Fill,
                Child = element
            });
        }
예제 #3
0
 public BrowseScriptsPage(ISsmsFunctionalityProvider6 provider, RemoteBridge bridge)
 {
     m_Bridge      = bridge;
     m_SsmsTabPage = provider.CreateTabPage(typeof(BrowseScriptsPageControl), TheProduct.Name, TheProduct.MainPaneId);
 }