Ejemplo n.º 1
0
 public RegenerationForm(Masterplan.Data.Regeneration regen)
 {
     this.InitializeComponent();
     this.fRegeneration   = regen.Copy();
     this.ValueBox.Value  = this.fRegeneration.Value;
     this.DetailsBox.Text = this.fRegeneration.Details;
 }
Ejemplo n.º 2
0
        /// <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);
        }
Ejemplo n.º 3
0
        public Regeneration Copy()
        {
            Regeneration regeneration = new Regeneration()
            {
                Value   = this.fValue,
                Details = this.fDetails
            };

            return(regeneration);
        }