Ejemplo n.º 1
0
 public OptionCreatureLoreForm(Masterplan.Data.CreatureLore cl)
 {
     this.InitializeComponent();
     Application.Idle += new EventHandler(this.Application_Idle);
     this.SkillBox.Items.Add("Arcana");
     this.SkillBox.Items.Add("Dungeoneering");
     this.SkillBox.Items.Add("History");
     this.SkillBox.Items.Add("Nature");
     this.SkillBox.Items.Add("Religion");
     this.fCreatureLore = cl.Copy();
     this.NameBox.Text  = this.fCreatureLore.Name;
     this.SkillBox.Text = this.fCreatureLore.SkillName;
     this.update_information();
 }
Ejemplo n.º 2
0
        public CreatureLore Copy()
        {
            CreatureLore creatureLore = new CreatureLore()
            {
                ID        = this.fID,
                Name      = this.fName,
                SkillName = this.fSkillName
            };

            foreach (Pair <int, string> pair in this.fInformation)
            {
                creatureLore.Information.Add(new Pair <int, string>(pair.First, pair.Second));
            }
            return(creatureLore);
        }