public void SetTransTypes(List <KVPBase> data) { data = data.OrderBy(p => p.Name).ToList(); TransTypes.Clear(); foreach (var item in data) { TransTypes.Add(item); } }
public void SetTransTypes(List <KVPBase> data) { data = data.OrderBy(p => p.Name).ToList(); TransTypes.Clear(); data.ForEach(o => TransTypes.Add(o)); if (LoadTransmissionsComplete != null) { LoadTransmissionsComplete(this, new EventArgs()); } }