コード例 #1
0
 public void AddRecordToRepo(GPS gps)
 {
     if (gps == null)
     {
         throw new ArgumentNullException("Error: The argument is Null");
     }
     GPSCollection.Add(gps);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }