/// <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); }
public void startClient(TcpClient inClientSocket, CameraServer serv, int count) { this.clientSocket = inClientSocket; this.server = serv; this.clientNumber = count; Thread ctThread = new Thread(getResponse); ctThread.Start(); }