Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
        //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);
        }
Exemplo n.º 4
0
        // 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();
        }
Exemplo n.º 5
0
 public MenuForm()
 {
     InitializeComponent();
     this.client = new ClientTcp();
 }