示例#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;
 }
示例#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);
        }
示例#3
0
        public Regeneration Copy()
        {
            Regeneration regeneration = new Regeneration()
            {
                Value   = this.fValue,
                Details = this.fDetails
            };

            return(regeneration);
        }