public InventorySetViewModel(Hero hero) { this.Hero = hero; this.View = new InventorySetPopUp(); HeroViewModel newHeroViewModel = new HeroViewModel(this.Hero); newHeroViewModel.View.InventoryHeroButton.Visibility = System.Windows.Visibility.Collapsed; this.HeroView = newHeroViewModel.View; this.HeroView.Height = this.View.Grid.Height - 100; this.HeroView.HeroImage.Height = 150; this.HeroView.ButtonSP.Visibility = System.Windows.Visibility.Collapsed; this.View.HeroViewSP.Children.Add(HeroView); EquipmentListing EquipmentListing = new EquipmentListing(); EquipmentListing.Controller.initEquipView(hero); this.view.allObjectSP.Children.Add(EquipmentListing); }
public EquipmentListingViewModel(EquipmentListing view) { this.View = view; }