Exemple #1
0
        public void ShowFullTraitList()
        {
            WindowManager wm = new WindowManager();

            Dictionary <string, object> settings = new Dictionary <string, object>();

            settings.Add("Height", 500);
            settings.Add("Width", 500);
            settings.Add("SizeToContent", System.Windows.SizeToContent.Manual);

            var vm = new TraitListViewModel(_traits);

            wm.ShowDialog(vm, null, settings);
            _traits = vm.Traits;
        }
Exemple #2
0
 public AddMonsterTraitsViewModel(BindableCollection <Models.TraitModel> traits,
                                  BindableCollection <Models.TraitModel> mosnterTraits)
 {
     TraitListVM    = new TraitListViewModel(traits);
     _monsterTraits = mosnterTraits;
 }