/// <summary> /// Clone an experience /// </summary> /// <param name="newGuid">Whether the cloned event should have a new GUID or retain the old one</param> /// <returns>The cloned experience</returns> public ExperienceModel Clone(bool newGuid) { ExperienceModel clonedExperienceModel = this.MemberwiseClone() as ExperienceModel; if (newGuid) { clonedExperienceModel.Id = Guid.NewGuid().ToString(); } return(clonedExperienceModel); }
/// <summary> /// Copy the experience model passed in to this experience model /// </summary> /// <param name="from">The experience to copy from</param> public void Copy(ExperienceModel from) { Name = from.Name; Description = from.Description; StimulationSpeed = from.StimulationSpeed; StimulationSuction = from.StimulationSuction; ExpressionSpeed = from.ExpressionSpeed; ExpressionSuction = from.ExpressionSuction; Breast = from.Breast; Storage = from.Storage; ExperienceId = from.ExperienceId; }