/// <summary>
        /// Initializes the command manager.
        /// </summary>
        /// <param name="commandHandles">The command handles.</param>
        /// <param name="shell">The shell.</param>
        public DefaultCommandManager(ComponentHandle<ICommand, CommandTraits>[] commandHandles, IShell shell)
        {
            this.commandHandles = commandHandles;
            this.shell = (DefaultShell) shell;

            commandPresentations = new Dictionary<string, CommandPresentation>();
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes the command manager.
        /// </summary>
        /// <param name="commandHandles">The command handles.</param>
        /// <param name="shell">The shell.</param>
        public DefaultCommandManager(ComponentHandle <ICommand, CommandTraits>[] commandHandles, IShell shell)
        {
            this.commandHandles = commandHandles;
            this.shell          = (DefaultShell)shell;

            commandPresentations = new Dictionary <string, CommandPresentation>();
        }
Esempio n. 3
0
        public void InitializeShellComposesShell()
        {
            var bootstrapper = new DefaultMefBootstrapper();
            var container    = new CompositionContainer();
            var shell        = new DefaultShell();

            bootstrapper.BaseContainer = container;
            bootstrapper.BaseShell     = shell;

            bootstrapper.CallInitializeShell();

            Assert.IsTrue(shell.AreImportsSatisfied);
        }
Esempio n. 4
0
        public void InitializeShellComposesShell()
        {
            var bootstrapper = new DefaultMefBootstrapper();
            var container = new CompositionContainer();
            var shell = new DefaultShell();

            bootstrapper.BaseContainer = container;
            bootstrapper.BaseShell = shell;

            bootstrapper.CallInitializeShell();

            Assert.IsTrue(shell.AreImportsSatisfied);
        }
Esempio n. 5
0
 private ShellHolder(DefaultShell shell)
 {
     this.shell = shell;
 }
 /// <summary>
 /// Initializes the tool window manager.
 /// </summary>
 /// <param name="shell">The shell.</param>
 public DefaultToolWindowManager(IShell shell)
 {
     this.shell = (DefaultShell)shell;
 }
Esempio n. 7
0
 public TipShellExtension(IShell shell, IToolWindowManager toolWindowManager)
 {
     this.shell             = (DefaultShell)shell;
     this.toolWindowManager = toolWindowManager;
 }
 public TipShellExtension(IShell shell, IToolWindowManager toolWindowManager)
 {
     this.shell = (DefaultShell)shell;
     this.toolWindowManager = toolWindowManager;
 }
 /// <summary>
 /// Initializes the tool window manager.
 /// </summary>
 /// <param name="shell">The shell.</param>
 public DefaultToolWindowManager(IShell shell)
 {
     this.shell = (DefaultShell)shell;
 }