public UtilityConsole(Type[] commands = null, Type[] modules = null, ICommandActivatorContainer container = null) { InitializeComponent(); _modules = modules ?? new Type[] { }; _commands = commands ?? new Type[] { }; var host = new HostInterface(HostInterfaceMode.Output); if (container != null) { host.SetCommandActivatorContainer(container); } host.Dock = DockStyle.Fill; Controls.Add(host); Host = host; }
public void SetCommandActivatorContainer(ICommandActivatorContainer container) { CommandActivatorContainer = container; }