public void AddRecordToRepo(GPS gps) { if (gps == null) { throw new ArgumentNullException("Error: The argument is Null"); } GPSCollection.Add(gps); }
public bool AddToCollection(GPS gps) { int oldCount = GPSCollection.Count; _addToCollectionOnly = true; if (GetGPS(gps.DeviceID) == null) { GPSCollection.Add(gps); } _addToCollectionOnly = false; return(GPSCollection.Count > oldCount); }
public bool AddRecordToRepo(GPS gps) { int oldCount = GPSCollection.Count; if (gps == null) { throw new ArgumentNullException("Error: The argument is Null"); } GPSCollection.Add(gps); return(GPSCollection.Count > oldCount); }