Exemplo n.º 1
0
 public OptionEpicDestinyForm(Masterplan.Data.EpicDestiny pp)
 {
     this.InitializeComponent();
     Application.Idle        += new EventHandler(this.Application_Idle);
     this.fEpicDestiny        = pp.Copy();
     this.NameBox.Text        = this.fEpicDestiny.Name;
     this.PrereqBox.Text      = this.fEpicDestiny.Prerequisites;
     this.DetailsBox.Text     = this.fEpicDestiny.Details;
     this.QuoteBox.Text       = this.fEpicDestiny.Quote;
     this.ImmortalityBox.Text = this.fEpicDestiny.Immortality;
     this.update_levels();
 }
Exemplo n.º 2
0
        public EpicDestiny Copy()
        {
            EpicDestiny epicDestiny = new EpicDestiny()
            {
                ID            = this.fID,
                Name          = this.fName,
                Quote         = this.fQuote,
                Prerequisites = this.fPrerequisites,
                Details       = this.fDetails,
                Immortality   = this.fImmortality
            };

            foreach (LevelData fLevel in this.fLevels)
            {
                epicDestiny.Levels.Add(fLevel.Copy());
            }
            return(epicDestiny);
        }