示例#1
0
        public override void ClearAllIsModified()
        {
            base.ClearAllIsModified();

            if (Pricing != null)
            {
                Pricing.ClearAllIsModified();
            }
            IsPricingModified = false;

            if (RuralFeatures != null)
            {
                RuralFeatures.ClearAllIsModified();
            }
            IsRuralFeaturesModified = false;

            if (BuildingDetails != null)
            {
                BuildingDetails.ClearAllIsModified();
            }
            IsBuildingDetailsModified = false;

            IsCategoryTypeModified = false;
            IsAuctionOnModified    = false;
            IsCouncilRatesModified = false;
        }
        public void Copy(RuralFeatures newRuralFeatures)
        {
            if (newRuralFeatures == null)
            {
                throw new ArgumentNullException("newRuralFeatures");
            }

            if (newRuralFeatures.IsFencingModified)
            {
                Fencing = newRuralFeatures.Fencing;
            }

            if (newRuralFeatures.IsAnnualRainfallModified)
            {
                AnnualRainfall = newRuralFeatures.AnnualRainfall;
            }

            if (newRuralFeatures.IsSoilTypesModified)
            {
                SoilTypes = newRuralFeatures.SoilTypes;
            }

            if (newRuralFeatures.IsImprovementsModified)
            {
                Improvements = newRuralFeatures.Improvements;
            }

            if (newRuralFeatures.IsIrrigationModified)
            {
                Irrigation = newRuralFeatures.Irrigation;
            }

            if (newRuralFeatures.IsCarryingCapacityModified)
            {
                CarryingCapacity = newRuralFeatures.CarryingCapacity;
            }

            if (newRuralFeatures.IsServicesModified)
            {
                Services = newRuralFeatures.Services;
            }
        }
        public void Copy(RuralListing newRuralListing)
        {
            if (newRuralListing == null)
            {
                throw new ArgumentNullException("newRuralListing");
            }

            base.Copy(newRuralListing);

            if (newRuralListing.IsCategoryTypeModified)
            {
                CategoryType = newRuralListing.CategoryType;
            }

            if (newRuralListing.IsPricingModified)
            {
                if (newRuralListing.Pricing == null)
                {
                    Pricing = null;
                }
                else
                {
                    if (Pricing == null)
                    {
                        Pricing = new SalePricing();
                    }

                    if (newRuralListing.Pricing.IsModified)
                    {
                        Pricing.Copy(newRuralListing.Pricing);
                    }

                    IsPricingModified = true;
                }
            }

            if (newRuralListing.IsAuctionOnModified)
            {
                AuctionOn = newRuralListing.AuctionOn;
            }

            if (newRuralListing.IsRuralFeaturesModified)
            {
                if (newRuralListing.RuralFeatures == null)
                {
                    RuralFeatures = null;
                }
                else
                {
                    if (RuralFeatures == null)
                    {
                        RuralFeatures = new RuralFeatures();
                    }

                    if (newRuralListing.RuralFeatures.IsModified)
                    {
                        RuralFeatures.Copy(newRuralListing.RuralFeatures);
                    }

                    IsRuralFeaturesModified = true;
                }
            }

            if (newRuralListing.IsCouncilRatesModified)
            {
                CouncilRates = newRuralListing.CouncilRates;
            }

            if (newRuralListing.IsBuildingDetailsModified)
            {
                if (newRuralListing.BuildingDetails == null)
                {
                    BuildingDetails = null;
                }
                else
                {
                    if (BuildingDetails == null)
                    {
                        BuildingDetails = new BuildingDetails();
                    }

                    if (newRuralListing.BuildingDetails.IsModified)
                    {
                        BuildingDetails.Copy(newRuralListing.BuildingDetails);
                    }

                    IsBuildingDetailsModified = true;
                }
            }
        }
示例#4
0
        public void Copy(RuralListing newRuralListing)
        {
            if (newRuralListing == null)
            {
                throw new ArgumentNullException("newRuralListing");
            }

            base.Copy(newRuralListing);

            if (newRuralListing.IsCategoryTypeModified)
            {
                CategoryType = newRuralListing.CategoryType;
            }

            if (newRuralListing.IsPricingModified)
            {
                if (newRuralListing.Pricing == null)
                {
                    Pricing = null;
                }
                else
                {
                    if (Pricing == null)
                    {
                        Pricing = new SalePricing();
                    }

                    if (newRuralListing.Pricing.IsModified)
                    {
                        Pricing.Copy(newRuralListing.Pricing);
                    }

                    IsPricingModified = true;
                }
            }

            if (newRuralListing.IsAuctionOnModified)
            {
                AuctionOn = newRuralListing.AuctionOn;
            }

            if (newRuralListing.IsRuralFeaturesModified)
            {
                if (newRuralListing.RuralFeatures == null)
                {
                    RuralFeatures = null;
                }
                else
                {
                    if (RuralFeatures == null)
                    {
                        RuralFeatures = new RuralFeatures();
                    }

                    if (newRuralListing.RuralFeatures.IsModified)
                    {
                        RuralFeatures.Copy(newRuralListing.RuralFeatures);
                    }

                    IsRuralFeaturesModified = true;
                }
            }

            if (newRuralListing.IsCouncilRatesModified)
            {
                CouncilRates = newRuralListing.CouncilRates;
            }

            if (newRuralListing.IsBuildingDetailsModified)
            {
                if (newRuralListing.BuildingDetails == null)
                {
                    BuildingDetails = null;
                }
                else
                {
                    if (BuildingDetails == null)
                    {
                        BuildingDetails = new BuildingDetails();
                    }

                    if (newRuralListing.BuildingDetails.IsModified)
                    {
                        BuildingDetails.Copy(newRuralListing.BuildingDetails);
                    }

                    IsBuildingDetailsModified = true;
                }
            }
        }
        public void Copy(RuralFeatures newRuralFeatures)
        {
            if (newRuralFeatures == null)
            {
                throw new ArgumentNullException("newRuralFeatures");
            }

            if (newRuralFeatures.IsFencingModified)
            {
                Fencing = newRuralFeatures.Fencing;
            }

            if (newRuralFeatures.IsAnnualRainfallModified)
            {
                AnnualRainfall = newRuralFeatures.AnnualRainfall;
            }

            if (newRuralFeatures.IsSoilTypesModified)
            {
                SoilTypes = newRuralFeatures.SoilTypes;
            }

            if (newRuralFeatures.IsImprovementsModified)
            {
                Improvements = newRuralFeatures.Improvements;
            }

            if (newRuralFeatures.IsIrrigationModified)
            {
                Irrigation = newRuralFeatures.Irrigation;
            }

            if (newRuralFeatures.IsCarryingCapacityModified)
            {
                CarryingCapacity = newRuralFeatures.CarryingCapacity;
            }

            if (newRuralFeatures.IsServicesModified)
            {
                Services = newRuralFeatures.Services;
            }
        }