public void OnSkillSelectedChange(HeroAdminSkillVM adminSkillVM) { if (null != this._currentSkillVM) { this._currentSkillVM.IsInspected = false; } this.CurrentSkillView = adminSkillVM; }
public void RefreshHeroSkill() { this.Skills.Clear(); foreach (SkillObject current in SkillObject.All) { this.Skills.Add(new HeroAdminSkillVM(current, this._heroAdminCharacter, OnSkillSelectedChange)); } this.Skills[0].IsInspected = true; this._currentSkillVM = this.Skills[0]; base.OnPropertyChanged("CurrentSkillView");//通知刷新 }