예제 #1
0
        public LoadSpellbook(Familiar parentForm, List<Spell> spellBook)
        {
            this.parentForm = parentForm;
            InitializeComponent();

            this.loadedSpellbook = new BindingList<LoadedSpell>();

            foreach (Spell spell in spellBook)
            {
                loadedSpellbook.Add(new LoadedSpell(spell));
            }

            this.spellBookGrid.DataSource = loadedSpellbook;
            Common.changeHeaderNames(this.spellBookGrid);
        }
예제 #2
0
 public NewSpell(Familiar parentForm)
 {
     this.parentForm = parentForm;
     InitializeComponent();
 }
 public SpellcasterSettings(Familiar parentForm)
 {
     this.parentForm = parentForm;
     spellCountPerLevel = new List<SpellCount>();
     InitializeComponent();
 }