private SkillVM CreateItem(Aow2.Modding.Skills.SkillResource skill) { SkillVM viewModel = SkillViewModelFactory.Create(skill); viewModel.SkillListProvider = this; return(viewModel); }
private void Load() { // Fkill skill list foreach (Aow2.Modding.Skills.SkillResource skill in Mod.Model.Data.Skills.Values) { SkillVM newVM = CreateItem(skill); Items.Dispatcher.Invoke(() => _collection.Add(newVM), DispatcherPriority.Background); } // Create exclusion grid Exclusions = new ExclusionGrid(_collection.Values); }