void Instance_PIDSLoaded(List <CarEnabledPIDs> pids) { List <CarEnabledPIDs> temp = pids.OrderByDescending(p => p.Enabled).ToList(); foreach (var item in temp) { PIDS.Add(item); } }
public void SetCarStatInfo(CarStatInfoModel model) { CarProtocolType = model.InterfaceType; PIDS.Clear(); foreach (var item in model.PIDs) { PIDS.Add(item); } if (LoadCarStatComplete != null) { LoadCarStatComplete(this, new EventArgs()); } }