Example #1
0
        public SolutionExplorer(IServiceProvider serviceProvider, ISolutionExplorerNodeFactory nodeFactory)
        {
            Guard.NotNull(() => serviceProvider, serviceProvider);
            Guard.NotNull(() => nodeFactory, nodeFactory);

            this.serviceProvider = serviceProvider;
            this.toolWindow      = serviceProvider.ToolWindow(StandardToolWindows.ProjectExplorer);
            this.nodeFactory     = nodeFactory;
        }
Example #2
0
 public MainController(VsToolWindow toolWindow, DTE2 dte2, Package package)
 {
     Package        = package;
     DTE            = dte2;
     ViewController = new ViewController(toolWindow);
     ViewController.RunIntrudingMethod += new EventHandler <ToolWindowControl.RunIntrudingMethodEventArgs>(ViewController_RunIntrudingMethod);
     ViewController.QueryContextType   += new EventHandler <ToolWindowControl.QueryContextTypeEventArgs>(ViewController_QueryContextType);
     ViewController.QueryConnect       += new EventHandler(ViewController_QueryConnect);
     IsConnected = false;
     StartContinousContextUpdate();
 }
Example #3
0
 public PackageManagerConsole([Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider)
 {
     this.serviceProvider = serviceProvider;
     this.toolWindow      = new VsToolWindow(serviceProvider, new Guid("0AD07096-BBA9-4900-A651-0598D26F6D24"));
 }
 public ViewController(VsToolWindow view)
 {
     VsToolWin = view;
 }