public void SendOrder(Order order) { string msg = Serialization.SerializeAnObject(order); msg += "<ORDER>"; socket.Send(msg); }
public void SendOrder(Order order) { LogWriter.GetInstance().Write("Send order"); string msg = Serialization.SerializeAnObject(order); msg += "<ORDER>"; socket.Send(msg); }
public ReadyCounter() { Menu = new List <Recipe> [3]; Menu[0] = new List <Recipe>(); Menu[1] = new List <Recipe>(); Menu[2] = new List <Recipe>(); s = "10.162.128.230"; p = 11000; socket = new SocketCom(s, p); Console.WriteLine("Socket created"); socket.MenuReception += UpdateMenu; //while(StaffManager.Instance.Counter.Menu[0][0] == null) socket.Send("<MENU>"); }