public void SetBodyTypes(List <KVPBase> data) { data = data.OrderBy(p => p.Name).ToList(); BodyTypes.Clear(); foreach (var item in data) { BodyTypes.Add(item); } }
public void SetBodyTypes(List <KVPBase> data) { data = data.OrderBy(p => p.Name).ToList(); BodyTypes.Clear(); data.ForEach(o => BodyTypes.Add(o)); if (LoadBodiesComplete != null) { LoadBodiesComplete(this, new EventArgs()); } }
private void ClearLists() { Marks.Clear(); Models.Clear(); EngineTypes.Clear(); EngineVolumes.Clear(); BodyTypes.Clear(); TransTypes.Clear(); }