Esempio n. 1
0
 public Driver(Robot robot, Thread httpLogServerThread, HttpLogServer httpLogServer,
               TextBox tblog)
 {
     this.robot               = robot;
     this.positionLogger      = new LogPosition(this.robot);
     this.httpLogServerThread = httpLogServerThread;
     this.httpLogServer       = httpLogServer;
     this.tbLog               = tblog;
 }
Esempio n. 2
0
        private void BootstrapRoboCop()
        {
            httpLogServer       = new HttpLogServer(httpPort);
            httpLogServerThread = new Thread(httpLogServer.Start);

            driver = new Driver(robot, this.httpLogServerThread, this.httpLogServer, this.tbLog);

            tcpServer = new TcpServer(port, driver, httpLogServerThread);
            tcpThread = new Thread(tcpServer.Start);

            tcpServer.Log += driver.httpServerLogEvent;


            tcpThread.Start();
        }