public void AddClient(String name, NetConnection connection) { Debug.Assert(FindClientView(connection) == null); ClientInfoView clientView = new ClientInfoView(name, connection); clientsView.AddView(clientView); clientsView.LayoutVer(10); viewsLookup[connection] = clientView; }
public void RemoveClient(NetConnection connection) { ClientInfoView clientView = FindClientView(connection); Debug.Assert(clientView != null); viewsLookup.Remove(connection); clientsView.RemoveView(clientView); clientsView.LayoutVer(10); }