Beispiel #1
0
        public bool HasChanged(ResponseAgreement agreement)
        {
            if (this.WakeDate != agreement.WakeDate ||
                this.CeremonyDate != agreement.CeremonyDate ||
                this.InternmentType != agreement.InternmentType ||
                this.FuneralType != agreement.FuneralType ||
                this.WakeType != agreement.WakeType ||
                this.ReligionType != agreement.ReligionType ||
                this.ExpectedAttendanceType != agreement.ExpectedAttendanceType ||
                this.ServicePreferences != agreement.ServicePreferences ||
                this.CasketMaterialType != agreement.CasketMaterialType ||
                this.CasketSizeType != agreement.CasketSizeType ||
                this.CasketColorType != agreement.CasketColorType ||
                this.CasketManufacturerType != agreement.CasketManufacturerType ||
                this.BurialContainerType != agreement.BurialContainerType ||
                this.TransportationOfFamilyType != agreement.TransportationOfFamilyType ||
                this.FlowerSprayType != agreement.FlowerSprayType ||
                this.PrimaryFlowerType != agreement.PrimaryFlowerType ||
                this.SecondaryFlowerType != agreement.SecondaryFlowerType ||
                this.AccentFlowerType != agreement.AccentFlowerType)
            {
                return(true);
            }

            return(false);
        }
Beispiel #2
0
 public void Update(ResponseAgreement agreement)
 {
     this.WakeDate                   = agreement.WakeDate;
     this.CeremonyDate               = agreement.CeremonyDate;
     this.InternmentType             = agreement.InternmentType;
     this.FuneralType                = agreement.FuneralType;
     this.WakeType                   = agreement.WakeType;
     this.ReligionType               = agreement.ReligionType;
     this.ExpectedAttendanceType     = agreement.ExpectedAttendanceType;
     this.ServicePreferences         = agreement.ServicePreferences;
     this.CasketMaterialType         = agreement.CasketMaterialType;
     this.CasketSizeType             = agreement.CasketSizeType;
     this.CasketColorType            = agreement.CasketColorType;
     this.CasketManufacturerType     = agreement.CasketManufacturerType;
     this.BurialContainerType        = agreement.BurialContainerType;
     this.TransportationOfFamilyType = agreement.TransportationOfFamilyType;
     this.FlowerSprayType            = agreement.FlowerSprayType;
     this.PrimaryFlowerType          = agreement.PrimaryFlowerType;
     this.SecondaryFlowerType        = agreement.SecondaryFlowerType;
     this.AccentFlowerType           = agreement.AccentFlowerType;
 }