예제 #1
0
        /// <summary>
        /// Adapter method for ObjectDataSource
        /// </summary>
        /// <returns>TravelImageCollection object</returns>
        public static TravelImageCollection GetAll()
        {
            TravelImageCollection list = new TravelImageCollection();

            list.FetchAll();
            return(list);
        }
예제 #2
0
        /// <summary>
        /// Return a deep copy of this collection
        /// </summary>
        public TravelImageCollection Clone()
        {
            TravelImageCollection clone = new TravelImageCollection();

            foreach (TravelImage image in this)
            {
                clone.Add(image.Clone());
            }
            clone.IsModified = this.IsModified;
            return(clone);
        }