/// <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>(); }
/// <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>(); }
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); }
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; }
public TipShellExtension(IShell shell, IToolWindowManager toolWindowManager) { this.shell = (DefaultShell)shell; this.toolWindowManager = toolWindowManager; }