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