示例#1
0
 public Painter(ClientTcp client)
 {
     InitializeComponent();
     this.g = this.pPainter.CreateGraphics();
     this.tabpointF = new List<PointF>();
     this.myOrder = new Orders();
     this.myClient = client;
     debug = new Log(Constants.logPainter);
 }
示例#2
0
 //log de debug
 //private Log debug = null;
 public PainterRealTime(ClientTcp client)
 {
     InitializeComponent();
     this.g = this.pPainter.CreateGraphics();
     this.tabpointF = new List<PointF>();
     this.myOrder = new Orders();
     this.myClient = client;
     this.optimize = new Optimize();
     //debug
     //this.debug = new Log(Constants.logPainterRealTime);
 }
示例#3
0
文件: Orders.cs 项目: Bideau/KukaDraw
        //debug
        //private Log debug = new Log(Constants.logOrder);
        public void giveOrders(ClientTcp remoteClient)
        {
            this.myClient = remoteClient;

            // Send all orders
            this.myClient.Send(Constants.start);
            foreach (string order in orders)
            {
                this.myClient.Send(order);
                //debug.writeLog(order);
                //Console.WriteLine(order);
            }

            this.myClient.Send(Constants.stop);
        }
示例#4
0
文件: Orders.cs 项目: Bideau/KukaDraw
        // Send all orders to the server
        public void giveOrders(int iPort, string sAddress)
        {
            // Create to client and configurate it
            this.myClient = new ClientTcp();
            this.myClient.InitConfig(iPort, sAddress);

            // Connect to server
            this.myClient.Connect();

            // Send all orders
            this.myClient.Send(Constants.start);
            foreach (string order in orders)
            {
                this.myClient.Send(order);
                //debug.writeLog(order);
            }
            this.myClient.Send(Constants.stop);

            // Disconnect from server
            this.myClient.Disconnect();

            // Clean orders
            this.orders.Clear();
        }
示例#5
0
 public MenuForm()
 {
     InitializeComponent();
     this.client = new ClientTcp();
 }