Exemplo n.º 1
0
        public GPS GetGPSEx(string deviceID)
        {
            CurrentEntity = GPSCollection.FirstOrDefault(n => n.DeviceID == deviceID);

            if (CurrentEntity == null)
            {
                CurrentEntity = GPSCollection.FirstOrDefault(n => n.Device?.PNPDeviceID == deviceID);
            }

            if (CurrentEntity != null)
            {
                GPSModels = GetModels(CurrentEntity.Brand);
            }
            else
            {
                if (GPSModels != null)
                {
                    GPSModels.Clear();
                }
            }
            return(CurrentEntity);
        }
Exemplo n.º 2
0
 public GPS GetGPS(string ID)
 {
     return(GPSCollection.FirstOrDefault(n => n.ID == ID));
 }
Exemplo n.º 3
0
 public GPS GetGPS(string deviceID)
 {
     CurrentEntity = GPSCollection.FirstOrDefault(n => n.DeviceID == deviceID);
     return(CurrentEntity);
 }
Exemplo n.º 4
0
 public GPS GetGPSByName(string deviceName)
 {
     CurrentEntity = GPSCollection.FirstOrDefault(n => n.DeviceName == deviceName);
     return(CurrentEntity);
 }