public HereAdminDashBoardVM(Hero hero, Action closeHereAdminDashBoard) { this._HeroAdminHeroSelectorVM = new HeroAdminHeroSelectorVM(hero, OnHeroSelected); this._closeHereAdminDashBoard = closeHereAdminDashBoard; this._hero = hero; this._heroAdminCharacter = HeroAdminCharacter.FromHero(hero); this._heroAdminCharacterVM = new HeroAdminCharacterVM(hero.Name.ToString(), hero.Level); this._heroAdminRecordVM = new HeroAdminRecordVM(this._heroAdminCharacter, this.OnToLoadHeroCharacter); this._heroAdminDevelopVM = new HeroAdminDevelopVM(this._heroAdminCharacter, OnResetLevelAction); this._heroAdminCharacterVM.FillFrom(hero.BodyProperties, hero.CharacterObject.FirstBattleEquipment, hero.Culture, hero.IsFemale); }
private void ResetData() { this._heroAdminDevelopVM = new HeroAdminDevelopVM(_heroAdminCharacter, OnResetLevelAction); this._heroAdminCharacterVM.RefreshHeroLevel(_heroAdminCharacter.Level); base.OnPropertyChanged("HeronDevelop"); }