Esempio n. 1
0
 public void AddLandmarks(IDataReader reader)
 {
     while (reader.Read())
     {
         if (!(reader["landmark_id"] is DBNull))
         {
             ItineraryLandmark landmark = new ItineraryLandmark(reader);
             _landmarks.Add(landmark);
         }
     }
     reader.Close();
 }
Esempio n. 2
0
        public int CompareTo(object obj)
        {
            int compareResult = 0;

            if (obj.GetType() == typeof(ItineraryLandmark))
            {
                ItineraryLandmark other = (ItineraryLandmark)obj;
                compareResult = this.SortOrder.CompareTo(other.SortOrder);
            }

            return(compareResult);
        }