Exemple #1
0
        void Instance_PIDSLoaded(List <CarEnabledPIDs> pids)
        {
            List <CarEnabledPIDs> temp = pids.OrderByDescending(p => p.Enabled).ToList();

            foreach (var item in temp)
            {
                PIDS.Add(item);
            }
        }
Exemple #2
0
 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());
     }
 }