public void AddType(List <sitetype> types) { // Reset Types Types.Clear(); // Add each type foreach (var type in types) { _type t = new _type(); t.id = type.ID; t.eventId = type.idIPMEvent; t.sizeId = type.idSiteSize; t.serviceId = type.idService; t.styleId = type.idStyleUrl; // check this later if (type.idStyleUrl != null) { t.styleUrl = getStyle(type.idStyleUrl).styleUrl; } Types.Add(t); } }
public void AddType(List<sitetype> types) { // Reset Types Types.Clear(); // Add each type foreach (var type in types) { _type t = new _type(); t.id = type.ID; t.eventId = type.idIPMEvent; t.sizeId = type.idSiteSize; t.serviceId = type.idService; t.styleId = type.idStyleUrl; // check this later if(type.idStyleUrl != null ) t.styleUrl = getStyle(type.idStyleUrl).styleUrl; Types.Add(t); } }