public OptionParagonPathForm(Masterplan.Data.ParagonPath pp) { this.InitializeComponent(); Application.Idle += new EventHandler(this.Application_Idle); this.fParagonPath = pp.Copy(); this.NameBox.Text = this.fParagonPath.Name; this.PrereqBox.Text = this.fParagonPath.Prerequisites; this.DetailsBox.Text = this.fParagonPath.Details; this.QuoteBox.Text = this.fParagonPath.Quote; this.update_levels(); }
public ParagonPath Copy() { ParagonPath paragonPath = new ParagonPath() { ID = this.fID, Name = this.fName, Quote = this.fQuote, Prerequisites = this.fPrerequisites, Details = this.fDetails }; foreach (LevelData fLevel in this.fLevels) { paragonPath.Levels.Add(fLevel.Copy()); } return(paragonPath); }