コード例 #1
0
        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;
        }
コード例 #2
0
 public void SetCommandActivatorContainer(ICommandActivatorContainer container)
 {
     CommandActivatorContainer = container;
 }