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>"); }
/// <summary> /// Create a connection /// </summary> public SocketCom(string server, int port) { this.Port = port; this.IpAdress = server; instance = this; }