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; } }
public SpellCheckVM(SpellVM owner, SpellVM spell) { Owner = owner; Spell = spell; IsChecked = Owner.RequiredIDs.Contains(Spell.ID); }