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); }
public GPS GetGPS(string ID) { return(GPSCollection.FirstOrDefault(n => n.ID == ID)); }
public GPS GetGPS(string deviceID) { CurrentEntity = GPSCollection.FirstOrDefault(n => n.DeviceID == deviceID); return(CurrentEntity); }
public GPS GetGPSByName(string deviceName) { CurrentEntity = GPSCollection.FirstOrDefault(n => n.DeviceName == deviceName); return(CurrentEntity); }