private void AddWorkExp_Click(object sender, RoutedEventArgs e) { var experienceEdit = new ExperienceEditor(repo); repo.OnExperienceChanged += Repo_OnExperienceChanged; experienceEdit.Show(); }
private void EditWorkExp_Click(object sender, RoutedEventArgs e) { var chosen = (WorkExperience)listBoxExp.SelectedItem; if (chosen != null) { repo.CurrentExperience = chosen; var experienceEdit = new ExperienceEditor(repo); repo.OnExperienceChanged += Repo_OnExperienceChanged; experienceEdit.Show(); } }