Esempio n. 1
0
        public static WasteTransferSearchFilter ConvertToWasteTransferSearchFilter(AreaOverviewSearchFilter filter)
        {
            WasteTransferSearchFilter converted = new WasteTransferSearchFilter();

            converted.AreaFilter = clone(filter.AreaFilter) as AreaFilter;
            converted.YearFilter = clone(filter.YearFilter) as YearFilter;
            return(converted);
        }
        /// <summary>
        /// Creates a new object that is a deep copy of the current instance.
        /// </summary>
        public object Clone()
        {
            AreaOverviewSearchFilter clone = this.MemberwiseClone() as AreaOverviewSearchFilter;

            clone.AreaFilter = this.AreaFilter != null?this.AreaFilter.Clone() as AreaFilter : null;

            clone.YearFilter = this.YearFilter != null?this.YearFilter.Clone() as YearFilter : null;

            return(clone);
        }
Esempio n. 3
0
        public static PollutantTransfersSearchFilter ConvertToPollutantTransfersSearchFilter(AreaOverviewSearchFilter filter)
        {
            PollutantTransfersSearchFilter converted = new PollutantTransfersSearchFilter();

            converted.AreaFilter = clone(filter.AreaFilter) as AreaFilter;
            converted.YearFilter = clone(filter.YearFilter) as YearFilter;
            return(converted);
        }