public RegenerationForm(Masterplan.Data.Regeneration regen) { this.InitializeComponent(); this.fRegeneration = regen.Copy(); this.ValueBox.Value = this.fRegeneration.Value; this.DetailsBox.Text = this.fRegeneration.Details; }
/// <summary> /// Creates a copy of the regeneration data. /// </summary> /// <returns>Returns the copy.</returns> public Regeneration Copy() { Regeneration r = new Regeneration(); r.Value = fValue; r.Details = fDetails; return(r); }
public Regeneration Copy() { Regeneration regeneration = new Regeneration() { Value = this.fValue, Details = this.fDetails }; return(regeneration); }