public ClientsManagement(ServeurListener ServListener, Delegates.WriteLineDelegate WriteLine, Delegates.WriteDelegate Write) { this.WriteLineDelegate = WriteLine; this.WriteDelegate = Write; this.ConexionState = true; this.ServListener = ServListener; ServListener.ClientConnected += new ServeurListener.ClientConnectedEventHandler(ServListener_ClientConnected); Client_List = new Dictionary<string, Client>(); ClientMsg_Queue = new Queue<NetMessage>(); }
void ServListener_ClientConnected(ServeurListener sender, Client cli) { OnClientConnected(cli); addClient(cli); }