private void viewAdventures_Click(object sender, EventArgs e) { Person person = ReturnPerson(); string caption = person.Name + "'s Adventures"; AdventuresViewForm myForm = new AdventuresViewForm(person.Adventures.ToList(), caption, number); myForm.ShowDialog(); }
private void viewAdventures_Click(object sender, EventArgs e) { AdventureLogic adventureLogic = new AdventureLogic(); string caption = person.Name + "'s Adventures"; AdventuresViewForm myForm = new AdventuresViewForm(adventureLogic.GetAllAdventuresByPersonID(person.PersonID).ToList(), caption, number); myForm.ShowDialog(); }