private void DeleteFeat(FeatEditViewModel featEditView) { _feats.Remove(featEditView); UpdateModelFeats(); OnPropertyChanged(nameof(Feats)); }
private void AddFeat() { FeatModel featModel = _compendium.Feats.First(); FeatEditViewModel featEditView = new FeatEditViewModel(featModel); featEditView.SelectionChanged += FeatEditView_SelectionChanged; _feats.Add(featEditView); UpdateModelFeats(); OnPropertyChanged(nameof(Feats)); }
private void ViewFeat(FeatEditViewModel featEditView) { _dialogService.ShowDetailsDialog(new FeatViewModel(_compendium.Feats.First(x => x.Id == featEditView.SelectedFeat.Item1))); }