Пример #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ComponentManager()
        {
            InitializeComponent();

            NaoRobotMgr = new NaoRobotManager();
            ScriptManager = new ScriptEditor();
            PPTSlidesController = new SlidesController();
            ExtScriptManager = new ExternalScriptEngine();
            CamServer = new CameraServer();
            SpeechClient = new SpeechController();

            Dockees = new Dictionary<string, IMessenger>();
            Docking(NaoRobotMgr);
            Docking(ScriptManager);
            Docking(PPTSlidesController);
            Docking(ExtScriptManager);
            Docking(CamServer);
            Docking(SpeechClient);

            EventMap();

            // Main Tab
            this.rdbtnPositiveMoodCondition.Checked = true;
            // Tabs
            this.tbpCameraControl.Controls.Add(CamServer);
            this.tbpRobotMgr.Controls.Add(NaoRobotMgr);
            this.tbpScriptEngine.Controls.Add(ScriptManager);
            this.tbpPPT.Controls.Add(PPTSlidesController);
            this.tbpExtSE.Controls.Add(ExtScriptManager);
            this.tbpSpeech.Controls.Add(SpeechClient);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public ComponentManager()
        {
            InitializeComponent();

            NaoRobotMgr = new NaoRobotManager();
            ScriptManager = new ScriptInterpreter();
            PPTSlidesController = new SlidesController();

            Dockees = new Dictionary<string, IMessenger>();
            Docking(NaoRobotMgr);
            Docking(ScriptManager);
            Docking(PPTSlidesController);

            EventMap();

            // Main Tab
            this.rdbtnPositiveMoodCondition.Checked = true;
            // Tabs
            this.tbpRobotMgr.Controls.Add(NaoRobotMgr);
            this.tbpScriptEngine.Controls.Add(ScriptManager.UI);
            this.tbpPPT.Controls.Add(PPTSlidesController);
        }