private partidas() { lista = new List <clsCategoriaYJugadoresBuscando>(); clsCategoriaYJugadoresBuscando cat; foreach (KeyValuePair <String, String> category in Utils.Utils.Categories) { cat = new clsCategoriaYJugadoresBuscando(category.Key, category.Value, new List <clsJugador>(), new List <clsPartida>()); lista.Add(cat); } }
public clsCategoriaYNumJugadoresBuscando(clsCategoriaYJugadoresBuscando categoria) { this.id = categoria.Id; this.nombre = categoria.Nombre; this.numJugadoresBuscando = categoria.NumJugadoresBuscando; }