public PlayerScoresViewModel(PlayerModel parent) : base(parent, "Ability Scores") { Image = ImageSource.FromResource("CB_5e.images.scores.png"); Scores = new ScoresModelViewModel(Context); UpdateAbilityChoices(); parent.PlayerChanged += Parent_PlayerChanged; }
private void Parent_PlayerChanged(object sender, EventArgs e) { Scores = new ScoresModelViewModel(Context); UpdateAbilityChoices(); OnPropertyChanged("Scores"); OnPropertyChanged("PointsLeft"); }
public PlayerScoresViewModel(PlayerModel parent) : base(parent, "Ability Scores") { Scores = new ScoresModelViewModel(Context); UpdateAbilityChoices(); parent.PlayerChanged += Parent_PlayerChanged; }