Exemple #1
0
        private SkillVM CreateItem(Aow2.Modding.Skills.SkillResource skill)
        {
            SkillVM viewModel = SkillViewModelFactory.Create(skill);

            viewModel.SkillListProvider = this;
            return(viewModel);
        }
Exemple #2
0
        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);
        }