Exemplo n.º 1
0
 private void Load()
 {
     foreach (SpellResource spell in Mod.Model.Data.Spells.Values)
     {
         SpellVM newVM = CreateItem(spell);
         Items.Dispatcher.Invoke(() => _collection.Add(newVM), DispatcherPriority.Background);
     }
     foreach (SpellVM spell in _collection)
     {
         spell.SpellListProvider = this;
     }
 }
Exemplo n.º 2
0
 public SpellCheckVM(SpellVM owner, SpellVM spell)
 {
     Owner     = owner;
     Spell     = spell;
     IsChecked = Owner.RequiredIDs.Contains(Spell.ID);
 }