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); }
//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); }
//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); }
// 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(); }
public MenuForm() { InitializeComponent(); this.client = new ClientTcp(); }