Пример #1
0
        public static WasteTransferTimeSeriesFilter ConvertToWasteTransferTimeSeriesFilter(IndustrialActivitySearchFilter filter)
        {
            WasteTransferTimeSeriesFilter converted = new WasteTransferTimeSeriesFilter();

            converted.AreaFilter     = clone(filter.AreaFilter) as AreaFilter;
            converted.ActivityFilter = clone(filter.ActivityFilter) as ActivityFilter;
            return(converted);
        }
Пример #2
0
        public static WasteTransferTimeSeriesFilter ConvertToWasteTransferTimeSeriesFilter(WasteTransferSearchFilter filter)
        {
            WasteTransferTimeSeriesFilter converted = new WasteTransferTimeSeriesFilter();

            converted.AreaFilter           = clone(filter.AreaFilter) as AreaFilter;
            converted.ActivityFilter       = clone(filter.ActivityFilter) as ActivityFilter;
            converted.WasteTypeFilter      = clone(filter.WasteTypeFilter) as WasteTypeFilter;
            converted.WasteTreatmentFilter = clone(filter.WasteTreatmentFilter) as WasteTreatmentFilter;

            return(converted);
        }
Пример #3
0
        /// <summary>
        /// Creates a new object that is a deep copy of the current instance.
        /// </summary>
        public object Clone()
        {
            WasteTransferTimeSeriesFilter clone = this.MemberwiseClone() as WasteTransferTimeSeriesFilter;

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

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

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

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

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

            return(clone);
        }